summaryrefslogtreecommitdiff
path: root/compatibility/stdbool.h
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2011-11-15 22:28:48 +0100
committerMichał Cichoń <michcic@gmail.com>2011-11-15 22:28:48 +0100
commit2ab3d99967d68c79351fe2a3df22c445447e3010 (patch)
tree3cecc3c3d31c33d516cd6d0263795a50c923888e /compatibility/stdbool.h
downloadpianobar-windows-build-2ab3d99967d68c79351fe2a3df22c445447e3010.tar.gz
pianobar-windows-build-2ab3d99967d68c79351fe2a3df22c445447e3010.tar.bz2
pianobar-windows-build-2ab3d99967d68c79351fe2a3df22c445447e3010.zip
Initial import.
Diffstat (limited to 'compatibility/stdbool.h')
-rw-r--r--compatibility/stdbool.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/compatibility/stdbool.h b/compatibility/stdbool.h
new file mode 100644
index 0000000..1ea9bb1
--- /dev/null
+++ b/compatibility/stdbool.h
@@ -0,0 +1,11 @@
+#ifndef __STDBOOL_REPLACEMENT__H__
+#define __STDBOOL_REPLACEMENT__H__
+
+#ifdef _MSC_VER
+typedef enum { __bool_must_promote_to_int = -1, false = 0, true = 1 } __bool;
+#define bool __bool
+#define false 0
+#define true 1
+#endif
+
+#endif /* __STDBOOL_REPLACEMENT__H__ */