X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.h;h=337096d1ae61d1fafa8922c1ff5c445b951c459c;hp=a3132b25c10149c3b6e6d2f12b3d86ecfc31a8fd;hb=171a457e86f686cf2adddc91baa9d9e703264259;hpb=87dd851bba96800c2dd91a34f70918a282b8da0a diff --git a/rmac.h b/rmac.h index a3132b2..337096d 100644 --- a/rmac.h +++ b/rmac.h @@ -9,10 +9,19 @@ #ifndef __RMAC_H__ #define __RMAC_H__ +#include +#include +#include +#include +#include +#include + // // TARGET SPECIFIC BUILD SETTINGS // #if defined(WIN32) || defined (WIN64) + #include + #include // Release platform - windows #define PLATFORM "Win32" #define _OPEN_FLAGS _O_TRUNC|_O_CREAT|_O_BINARY|_O_RDWR @@ -40,49 +49,29 @@ #define WARNING(desc) DO_PRAGMA(message (#desc)) #endif - #include - #include - #include - #include - #include - #include - #include - #include #else #ifdef __GCCUNIX__ + #include + #include // Release platform - mac OS-X or linux #define PLATFORM "OSX/Linux" #define _OPEN_FLAGS O_TRUNC|O_CREAT|O_RDWR #define _OPEN_INC O_RDONLY - #define _PERM_MODE S_IREAD|S_IWRITE + #define _PERM_MODE S_IRUSR|S_IWUSR // WARNING WARNING WARNING #define DO_PRAGMA(x) _Pragma (#x) #define WARNING(desc) DO_PRAGMA(message (#desc)) - #include - #include - #include - #include - #include - #include - #include - #include #else // Release platform - not specified + #include #define PLATFORM "Unknown" #define _OPEN_FLAGS O_TRUNC|O_CREAT|O_RDWR #define _OPEN_INC O_RDONLY - #define _PERM_MODE S_IREAD|S_IWRITE - // Defined here, even though the platfrom may not support it... + #define _PERM_MODE S_IREAD|S_IWRITE + // Defined here, even though the platform may not support it... #define DO_PRAGMA(x) _Pragma (#x) #define WARNING(desc) DO_PRAGMA(message (#desc)) - #include - #include - #include - #include - #include - #include - #include #endif #endif @@ -210,6 +199,8 @@ extern int lsym_flag; extern int sbra_flag; extern int obj_format; extern int legacy_flag; +extern LONG PRGFLAGS; +extern int optim_flag; // Exported functions char * fext(char *, char *, int);