Skip to content

Commit

Permalink
Don't include GNUC headers if _MSC_VER is defined
Browse files Browse the repository at this point in the history
diff --git c/src/python/core.c i/src/python/core.c
index 5879413..4b1ab89 100644
--- c/src/python/core.c
+++ i/src/python/core.c
@@ -1,4 +1,10 @@
 #include <Python.h>
+#ifndef _MSC_VER
+#include <alloca.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <time.h>
+#endif
 #include "../libethash/ethash.h"
 #include "../libethash/internal.h"
  • Loading branch information
zv committed Feb 13, 2019
1 parent aaf4140 commit befb7e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/python/core.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#include <Python.h>
#ifndef _MSC_VER
#include <alloca.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#endif
#include "../libethash/ethash.h"
#include "../libethash/internal.h"

Expand Down

0 comments on commit befb7e8

Please sign in to comment.