aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConstantine Tarasenkov <iamvfx@gmail.com>2015-02-03 00:06:50 +0300
committerConstantine Tarasenkov <iamvfx@gmail.com>2015-02-03 00:06:50 +0300
commitab12193f10575d8375839eed35c9bc51ce6054b7 (patch)
tree2651db35d17b0991e67460dbb5f302bb8556ebf7 /src
parentb926765ce009e102cad7c597a3cbae9a9bc15b47 (diff)
downloadraylib-ab12193f10575d8375839eed35c9bc51ce6054b7.tar.gz
raylib-ab12193f10575d8375839eed35c9bc51ce6054b7.zip
Fixes for C++
Diffstat (limited to 'src')
-rw-r--r--src/raylib.h2
-rw-r--r--src/utils.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 6ee78226..1be3f9a6 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -178,8 +178,10 @@
// Types and Structures Definition
//----------------------------------------------------------------------------------
+#ifndef __cplusplus
// Boolean type
typedef enum { false, true } bool;
+#endif
// byte type
typedef unsigned char byte;
diff --git a/src/utils.c b/src/utils.c
index 8e42e533..d3d57106 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -27,6 +27,7 @@
*
**********************************************************************************************/
+#include "raylib.h"
#include "utils.h"
#if defined(PLATFORM_ANDROID)