tecknophreak
10-15-2003, 08:56 AM
I've got a program for linux which has a few headers which need to be changed so that it'll compile on VC++. Is there a precompiler def to check to see if the OS is Linux or Windows? Looking to do something like:
#ifdef __LINUX__
#include <sys/types.h>
#include <sys/socket.h>
#else // WINDOWS
#include <winsock.h>
#endif
First time taking code to a windows box which actually needs to be changed to work on windows. :(
#ifdef __LINUX__
#include <sys/types.h>
#include <sys/socket.h>
#else // WINDOWS
#include <winsock.h>
#endif
First time taking code to a windows box which actually needs to be changed to work on windows. :(