Mariano Alvarez Fernandez wrote:
I have a problem here:
-#if defined(__linux__) -# include "bcclnx.h" +#if defined(__DJGPP__) +# include <dos.h> +# include <pc.h> #elif defined(__WIN32__) # include "bccw32.h" #else -# include <dos.h> -# include <pc.h> +# include "bcclnx.h" #endif
This break the Wattcom and TurboC targets, really they are unmaintained now, but I will prefer don't break it, if we can. So, what about other macros?, can we check for __unix__ or something similar?
Perhaps replace __DJGPP__ by MSDOS or __MSDOS__. I don't know these compilers, so I don't know if they define these symbols, but if they do, this would seem the cleanest solution, anyway (<dos.h> and <pc.h> are Dos-only, so if it gets ported, say, to the Mac sometime, they shouldn't be used, either; therefore, I'd prefer to check for Dos explicitly if possible).
Frank