S
songbird
hello,
i'm fiddling with some code that contains the following:
# ifdef BSD41
# include <time.h>
# else
# include <sys/time.h>
# endif
i would like to retain compatibility but need to
have the first expression evaluate to true for my
current system (i.e. <time.h> is the one that works)
Linux Debian Gnu Squeeze using gcc (Debian 4.4.5-8) 4.4.5
in reading what documents i can scrounge up (including
the FAQ) i couldn't find a list of constants like the
BSD41 for Debian or Gnu, so i'm not sure what would be
a compatible way to do this. sorry if this is a newbie
question, but i'm wading through this the best i can...
and yes, sure i can take out the defines and use a
straight include of <time.h>, but would that break
BSD compiles for someone else?
thanks for your replies,
i'm fiddling with some code that contains the following:
# ifdef BSD41
# include <time.h>
# else
# include <sys/time.h>
# endif
i would like to retain compatibility but need to
have the first expression evaluate to true for my
current system (i.e. <time.h> is the one that works)
Linux Debian Gnu Squeeze using gcc (Debian 4.4.5-8) 4.4.5
in reading what documents i can scrounge up (including
the FAQ) i couldn't find a list of constants like the
BSD41 for Debian or Gnu, so i'm not sure what would be
a compatible way to do this. sorry if this is a newbie
question, but i'm wading through this the best i can...
and yes, sure i can take out the defines and use a
straight include of <time.h>, but would that break
BSD compiles for someone else?
thanks for your replies,