aboutsummaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/common/mifi.c4
-rw-r--r--shared/common/port.c2
-rw-r--r--shared/sickle/sic.c2
-rw-r--r--shared/toxy/scriptlet.c2
-rw-r--r--shared/unstable/loader.c8
5 files changed, 9 insertions, 9 deletions
diff --git a/shared/common/mifi.c b/shared/common/mifi.c
index 4da9f55..44b9483 100644
--- a/shared/common/mifi.c
+++ b/shared/common/mifi.c
@@ -2,7 +2,7 @@
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
-#ifdef NT
+#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
@@ -27,7 +27,7 @@ typedef u_int16_t uint16;
#ifndef uchar
typedef u_int8_t uchar;
#endif
-#elif defined(NT)
+#elif defined(_WIN32)
#ifndef uint32
typedef unsigned long uint32;
#endif
diff --git a/shared/common/port.c b/shared/common/port.c
index ffce677..6fdcaef 100644
--- a/shared/common/port.c
+++ b/shared/common/port.c
@@ -10,7 +10,7 @@
#ifdef UNIX
#include <unistd.h>
#endif
-#ifdef NT
+#ifdef _WIN32
#include <io.h>
#endif
#include <stdio.h>
diff --git a/shared/sickle/sic.c b/shared/sickle/sic.c
index 3630b2b..a306095 100644
--- a/shared/sickle/sic.c
+++ b/shared/sickle/sic.c
@@ -14,7 +14,7 @@
//#define SIC_DEBUG
#endif
-#if defined(NT) || defined(MACOSX)
+#if defined(_WIN32) || defined(MACOSX)
/* cf pd/src/x_arithmetic.c */
#define cosf cos
#endif
diff --git a/shared/toxy/scriptlet.c b/shared/toxy/scriptlet.c
index 622512e..804e0b2 100644
--- a/shared/toxy/scriptlet.c
+++ b/shared/toxy/scriptlet.c
@@ -7,7 +7,7 @@
#ifdef UNIX
#include <unistd.h>
#endif
-#ifdef NT
+#ifdef _WIN32
#include <io.h>
#endif
#include "m_pd.h"
diff --git a/shared/unstable/loader.c b/shared/unstable/loader.c
index e8ca544..62e9aaf 100644
--- a/shared/unstable/loader.c
+++ b/shared/unstable/loader.c
@@ -13,7 +13,7 @@
#include <stdlib.h>
#include <unistd.h>
#endif
-#ifdef NT
+#ifdef _WIN32
#include <io.h>
#include <windows.h>
#endif
@@ -47,7 +47,7 @@ static char sys_dllextent[] =
#ifdef MACOSX
".pd_darwin";
#endif
-#ifdef NT
+#ifdef _WIN32
".dll";
#endif
@@ -56,7 +56,7 @@ static int unstable_doload_lib(char *dirname, char *classname)
char symname[MAXPDSTRING], filename[MAXPDSTRING], *lastdot;
void *dlobj;
t_xxx makeout;
-#ifdef NT
+#ifdef _WIN32
HINSTANCE ntdll;
#endif
/* refabricate the pathname */
@@ -88,7 +88,7 @@ static int unstable_doload_lib(char *dirname, char *classname)
}
makeout = (t_xxx)dlsym(dlobj, symname);
#endif
-#ifdef NT
+#ifdef _WIN32
sys_bashfilename(filename, filename);
ntdll = LoadLibrary(filename);
if (!ntdll)