X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/86434d71157a5b79dee2576e0cec0e421f0d0316..053f9cc122c63048d9607a3d684e9dca28ae96ac:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index 22eeaba4a6..71c80d3284 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -181,6 +181,12 @@ // in VC++ 4.2 the bool keyword is reserved (hence can't be typedefed) // but not implemented, so we must #define it #define bool unsigned int + #elif defined(__VISUALC__) && (__VISUALC__ == 1010) + // For VisualC++ 4.1, we need to define + // bool as something between 4.0 & 5.0... + typedef unsigned int wxbool; + #define bool wxbool + #define HAVE_BOOL #elif defined(__VISUALC__) && (__VISUALC__ > 1020) // VC++ supports bool since 4.2 #define HAVE_BOOL