Fixing issue for #define of TRUE
This commit is contained in:
parent
15538841de
commit
0b14479597
1 changed files with 1 additions and 6 deletions
5
gfx.h
5
gfx.h
|
@ -35,13 +35,8 @@
|
||||||
* @brief Generic 'true' boolean constant.
|
* @brief Generic 'true' boolean constant.
|
||||||
*/
|
*/
|
||||||
#if !defined(TRUE) || defined(__DOXYGEN__)
|
#if !defined(TRUE) || defined(__DOXYGEN__)
|
||||||
// Keil/ARMCC requires some special threatment. can probably be generalized to always be 1.
|
|
||||||
#if (GFX_COMPILER == GFX_COMPILER_ARMCC) || (GFX_COMPILER == GFX_COMPILER_KEIL)
|
|
||||||
#define TRUE 1
|
|
||||||
#else
|
|
||||||
#define TRUE -1
|
#define TRUE -1
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Mark a function as deprecated.
|
* @brief Mark a function as deprecated.
|
||||||
|
|
Loading…
Add table
Reference in a new issue