Created
June 11, 2013 10:06
-
-
Save Frodox/5755804 to your computer and use it in GitHub Desktop.
If the compiler does not support C99, you can define bool type yourself.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdbool.h> | |
– Keith Thompson | |
If the compiler does not support C99, you can define bool type yourself: | |
// file : myboolean.h | |
#ifndef MYBOOLEAN_H | |
#define MYBOOLEAN_H | |
#define false 0 | |
#define true 1 | |
typedef int bool; // or #define bool int | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/8133074/error-unknown-type-name-bool