diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-26 22:18:37 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-26 22:18:37 +0100 |
| commit | 4eaa6c091f97ca3455b2ae48a5f68867c0f7768e (patch) | |
| tree | 79ae89ae5b7399c774ae6fcb792c109a725e1af8 /Source/Global_Inc.h | |
| parent | f06d582d63b1f91e48ecb17a11987217144c5c79 (diff) | |
| download | airport-4eaa6c091f97ca3455b2ae48a5f68867c0f7768e.tar.gz | |
* Slight optimization: all comparations against true are now compared against != false.
+ Added a provisional background during gameplay (still WIP).
* Map editor now allows creating a map.
Diffstat (limited to 'Source/Global_Inc.h')
| -rw-r--r-- | Source/Global_Inc.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/Source/Global_Inc.h b/Source/Global_Inc.h index c2b09d6..9585cc1 100644 --- a/Source/Global_Inc.h +++ b/Source/Global_Inc.h @@ -1,5 +1,5 @@ -#ifndef __GLOBAL_INC__H__ -#define __GLOBAL_INC__H__ +#ifndef GLOBAL_INC__H__ +#define GLOBAL_INC__H__ /* ************************************* * Includes @@ -18,8 +18,7 @@ * Defines * *************************************/ -#ifdef SERIAL_INTERFACE -#else // SERIAL_INTERFACE +#ifndef SERIAL_INTERFACE #define Serial_printf dprintf @@ -29,20 +28,24 @@ #define DEBUG_PRINT_VAR(var) Serial_printf(#var " = %d\n", var); #ifndef bool - typedef enum - { - false = 0, - true = 1 - }bool; +typedef enum t_bool +{ + false = 0, + true = 1 +}bool; #endif #if (PSXSDK_VERSION != 0x0599) #error "Wrong PSXSDK version! Please use version 0.5.99." #endif -/* Test for GCC > 5.2.0 */ +/* Test for GCC == 5.2.0 */ #if ( (__GNUC__ != 5) || (__GNUC_MINOR__ != 2) || (__GNUC_PATCHLEVEL__ != 0) ) +#define STR_HELPER(x) #x +#define STR(x) STR_HELPER(x) +#pragma message ( "******** You are using GCC version number: " STR(__GNUC__) \ + "." STR(__GNUC_MINOR__) "." STR(__GNUC_PATCHLEVEL__) " ********") #error "Wrong GCC version! Please use version 5.2.0." #endif -#endif // __GLOBAL_INC__H__ +#endif // GLOBAL_INC__H__ |
