Diff of /tests/self1.c [135d6f] .. [a3ea0b] Maximize Restore

  Switch to side-by-side view

--- a/tests/self1.c
+++ b/tests/self1.c
@@ -54,7 +54,7 @@
 	 */
 	pthread_t self;
 
-#ifdef PTW32_STATIC_LIB
+#if defined(PTW32_STATIC_LIB) && !(defined(_MSC_VER) || defined(__MINGW32__))
 	pthread_win32_process_attach_np();
 #endif
 
@@ -62,7 +62,7 @@
 
 	assert(self.p != NULL);
 
-#ifdef PTW32_STATIC_LIB
+#if defined(PTW32_STATIC_LIB) && !(defined(_MSC_VER) || defined(__MINGW32__))
 	pthread_win32_process_detach_np();
 #endif
 	return 0;