Various portability defines
authorVictor Kirhenshtein <victor@netxms.org>
Sun, 16 Jan 2005 21:42:16 +0000 (21:42 +0000)
committerVictor Kirhenshtein <victor@netxms.org>
Sun, 16 Jan 2005 21:42:16 +0000 (21:42 +0000)
include/nms_common.h
include/unicode.h

index 4bfd2de..49a3596 100644 (file)
 #include <windows.h>
 #include <process.h>
 #include <sys/stat.h>
+
 #ifndef UNDER_CE
+#include <io.h>
 #include <fcntl.h>
 #endif
 
+#define S_IRUSR      0400
+#define S_IWUSR      0200
+
 #define snprintf  _snprintf
 
 typedef unsigned __int64 QWORD;
index 1d04d19..6cf58e3 100644 (file)
@@ -77,6 +77,8 @@
 #define _tcsspn   strspn
 #define _tcscat   strcat
 #define _topen    open
+#define _taccess  access
+#define _tunlink  unlink
 
 #endif