Precompile define problem

From: Ruggero Bandera (ruggero.bandera_at_cjb.it)
Date: 10/29/04


Date: Fri, 29 Oct 2004 14:48:03 +0200

Hi

I used Windows CE Plafrom Builder 4.2

Into ma module xxx.cpp I have this code:

#define OSWINDOWS_CE 1

#ifdef OSWINDOWS_CE
#include <windows.h>
#include <winsock.h>
#else
#include <unistd.h>
#endif

When I compile I got this error :Could not find the file <unistd.h>.

If i want to compile I need to comment the line as:
#ifdef OSWINDOWS_CE
#include <windows.h>
#include <winsock.h>
#else
// #include <unistd.h> <----
#endif

Any suggestions?
Ruggero Bandera



Relevant Pages