summaryrefslogtreecommitdiff
path: root/examples/c/ex_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_thread.c')
-rw-r--r--examples/c/ex_thread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/c/ex_thread.c b/examples/c/ex_thread.c
index 7c52d3b8189..fa82bd5f113 100644
--- a/examples/c/ex_thread.c
+++ b/examples/c/ex_thread.c
@@ -30,14 +30,13 @@
* table from multiple threads.
*/
-#ifndef _WIN32
-#include <pthread.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#ifdef _WIN32
+#ifndef _WIN32
+#include <pthread.h>
+#else
#include "windows_shim.h"
#endif