aboutsummaryrefslogtreecommitdiff
path: root/iemnet.h
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-03-29 17:32:00 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-03-29 17:32:00 +0000
commit3b0519565763342e77515975173b681fa7171ee5 (patch)
tree8e2e4fa74c375aea0da6677af2197b69d585b50f /iemnet.h
parentbbca313506e4a50f849a2d27def90304e3a819df (diff)
made it compile on w32 again
svn path=/trunk/externals/iem/iemnet/; revision=13308
Diffstat (limited to 'iemnet.h')
-rw-r--r--iemnet.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/iemnet.h b/iemnet.h
index 95fb2e3..8a7e628 100644
--- a/iemnet.h
+++ b/iemnet.h
@@ -114,13 +114,11 @@ void iemnet__addrout(t_outlet*status_outlet, t_outlet*address_outlet, long addre
#if defined(_MSC_VER)
+# define snprintf _snprintf
# define IEMNET_EXTERN __declspec(dllexport) extern
# define CCALL __cdecl
-# pragma section(".CRT$XCU",read)
# define IEMNET_INITIALIZER(f) \
- static void __cdecl autoinit__ ## f(void); \
- __declspec(allocate(".CRT$XCU")) void (__cdecl*f##_)(void) = f; \
- static void __cdecl autoinit__ ## f(void) { f(); }
+ static void autoinit__ ## f(void) { f(); }
#elif defined(__GNUC__)
# define IEMNET_EXTERN extern
# define CCALL