Can someone please look up the OS-dependant #define for various *BSD defines? 'gcc -v -o x x.c' for Linux gives: Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/specs gcc version 2.8.1 /usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586__ -Asystem(unix) -Acpu(i386) -Amachine(i386) bus.c /tmp/cca14223.i So I could use __linux__ to determine the platform. What I'm interested in doing is something like this: #if defined(__freebsd__) && MAX_PWD_LENGTH == 10 #warning Your passwords won't work. #endif Along that lines, is there a #define to tell if you are using MD5 passwords? (That's the problem, not DES passwords.) -- George Greer, greerga@circlemud.org | Genius may have its limitations, but http://patches.van.ml.org/ | stupidity is not thus handicapped. http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST