]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Workaround for missing stdbool.h in Visual Studio
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 1 Aug 2014 15:35:59 +0000 (17:35 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 1 Aug 2014 15:38:10 +0000 (17:38 +0200)
libhpcs_p.h

index 1d305bf972b762f852de978f6b291c5fe8e0dff8..13281b4eb74bdf4780fd370621773622e02dd8cf 100644 (file)
@@ -1,3 +1,9 @@
+#ifdef _MSC_VER
+typedef int uint8_t
+#define true 1
+#define false 0
+#endif
+
 #include <stdbool.h>
 #include <stdio.h>