Subject: __unix__ macro
To: None <netbsd-users@netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: netbsd-users
Date: 08/26/2002 12:53:18
Hello

While trying to compile OpenCM, I saw that __unix__ was not defined during
compilation... I've tried the following program in NetBSD, OpenBSD and FreeBSD:

#include <stdio.h>
int main() {
#ifdef __unix__
printf("defined\n");
#else
printf("not defined\n");
#endif
return 0;
}

Both in FreeBSD and OpenBSD it says 'defined', but in NetBSD I get 'not defined'.
Why is this?

Thanks!

-- 
HispaBSD admin - http://www.HispaBSD.org
Julio Merino <jmmv@hispabsd.org>