Recently I convert a windows c++ program to linux,I write a .h file to convet some type where linux does not have that the prgram use.
#define _MAX_PATH 260 /* max. length of full pathname */
#define HANDLE int
#define MAX_PATH 260
#define TRUE true
#define FALSE false
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
typedef int BOOL;
typedef unsigned long DWORD;
typedef void VOID;
typedef wchar_t WCHAR;
typedef WCHAR *LPWSTR;
typedef unsigned char BOOLEAN;
I am not familiar with windows types,Just use vs 2010 select the type then call F12,Does it right?