You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
432 B

/*
* Check platform specific preprocessor defines.
*/
#include <stdio.h>
int main(int argc, char *argv[]) {
#ifdef __linux
printf("__linux defined\n");
#endif
#ifdef __unix
printf("__unix defined\n");
#endif
#ifdef __posix
printf("__posix defined\n");
#endif
#ifdef __APPLE__
printf("__APPLE__ defined\n");
#endif
#ifdef _WIN64
printf("_WIN64 defined\n");
#endif
#ifdef _WIN32
printf("_WIN32 defined\n");
#endif
}