From ab12193f10575d8375839eed35c9bc51ce6054b7 Mon Sep 17 00:00:00 2001 From: Constantine Tarasenkov Date: Tue, 3 Feb 2015 00:06:50 +0300 Subject: [PATCH] Fixes for C++ --- src/raylib.h | 2 ++ src/utils.c | 1 + 2 files changed, 3 insertions(+) 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)