]> granicus.if.org Git - php/commitdiff
- export patch
authorAndi Gutmans <andi@php.net>
Wed, 28 Apr 1999 18:35:42 +0000 (18:35 +0000)
committerAndi Gutmans <andi@php.net>
Wed, 28 Apr 1999 18:35:42 +0000 (18:35 +0000)
TSRM/TSRM.c
TSRM/TSRM.dsp
TSRM/TSRM.h

index 364ce4b2402b708b8651a7c8df2c66eb07ba1a59..a154cbb6a3c95e6887331ebe4e7fe6443143a421 100644 (file)
@@ -56,7 +56,7 @@ static int tsrm_debug_status;
 
 
 /* Startup TSRM (call once for the entire process) */
-int tsrm_startup(int expected_threads, int expected_resources, int debug_status)
+TSRM_FUNC int tsrm_startup(int expected_threads, int expected_resources, int debug_status)
 {
        tsrm_tls_table_size = expected_threads;
        tsrm_tls_table = (tsrm_tls_entry **) calloc(tsrm_tls_table_size, sizeof(tsrm_tls_entry *));
@@ -82,7 +82,7 @@ int tsrm_startup(int expected_threads, int expected_resources, int debug_status)
 
 
 /* Shutdown TSRM (call once for the entire process) */
-void tsrm_shutdown()
+TSRM_FUNC void tsrm_shutdown()
 {
        int i;
 
index 28d71522155fcae05a45ec6f60eaebcc4f52f5d8..2c9f10edd1c54082fdfac1a304386b8426f41c6a 100644 (file)
@@ -41,7 +41,7 @@ RSC=rc.exe
 # PROP Intermediate_Dir "Debug_TS"
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /I "C:\Projects\TSRM" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
-# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "C:\Projects\TSRM" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "C:\Projects\TSRM" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "TSRM_EXPORTS" /YX /FD /GZ /c
 # ADD BASE RSC /l 0x40d /d "_DEBUG"
 # ADD RSC /l 0x40d /d "_DEBUG"
 BSC32=bscmake.exe
@@ -64,7 +64,7 @@ LIB32=link.exe -lib
 # PROP Intermediate_Dir "Release_TS"
 # PROP Target_Dir ""
 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
 # ADD BASE RSC /l 0x40d /d "NDEBUG"
 # ADD RSC /l 0x40d /d "NDEBUG"
 BSC32=bscmake.exe
index 086b2cfffcf15bd5d213b67124f8942a93a4d1a0..8674a5d0278970b96c9d1315a11d3050ccb446f7 100644 (file)
 
 typedef int ts_rsrc_id;
 
+#if WIN32||WINNT
+#      ifdef TSRM_EXPORTS
+#      define TSRM_API __declspec(dllexport)
+#      else
+#      define TSRM_API __declspec(dllimport)
+#      endif
+#else
+#      define TSRM_API
+#endif
+
 
 /* Define TSRM_FUNC */
 #ifdef __cplusplus
-#define TSRM_FUNC      extern "C"
+#define TSRM_FUNC      extern "C" TSRM_API
 #else
-#define TSRM_FUNC
+#define TSRM_FUNC      TSRM_API
 #endif