Skip to content
Snippets Groups Projects
Commit 13b798a1 authored by deuce's avatar deuce
Browse files

Define __unix__ in gen_defs.h not in genwrap.h for *nix systems that don't

define it themselves.
parent 4d6a8462
Branches
Tags
No related merge requests found
...@@ -51,8 +51,15 @@ ...@@ -51,8 +51,15 @@
#elif defined(__OS2__) #elif defined(__OS2__)
#define INCL_BASE /* need this for DosSleep prototype */ #define INCL_BASE /* need this for DosSleep prototype */
#include <os2.h> #include <os2.h>
#else
#if (defined(__APPLE__) && defined(__MACH__) && defined(__POWERPC__)) || defined (__NetBSD__)
#ifndef __unix__
#define __unix__
#endif
#endif
#endif #endif
#include <sys/types.h> #include <sys/types.h>
/* Control characters */ /* Control characters */
......
...@@ -38,12 +38,6 @@ ...@@ -38,12 +38,6 @@
#ifndef _GENWRAP_H #ifndef _GENWRAP_H
#define _GENWRAP_H #define _GENWRAP_H
#if (defined(__APPLE__) && defined(__MACH__) && defined(__POWERPC__)) || defined (__NetBSD__)
#ifndef __unix__
#define __unix__
#endif
#endif
#include <stdio.h> /* sprintf */ #include <stdio.h> /* sprintf */
#include "gen_defs.h" /* ulong */ #include "gen_defs.h" /* ulong */
#include "wrapdll.h" /* DLLEXPORT and DLLCALL */ #include "wrapdll.h" /* DLLEXPORT and DLLCALL */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment