| 1 | /********** |
| 2 | This library is free software; you can redistribute it and/or modify it under |
| 3 | the terms of the GNU Lesser General Public License as published by the |
| 4 | Free Software Foundation; either version 3 of the License, or (at your |
| 5 | option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) |
| 6 | |
| 7 | This library is distributed in the hope that it will be useful, but WITHOUT |
| 8 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 9 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for |
| 10 | more details. |
| 11 | |
| 12 | You should have received a copy of the GNU Lesser General Public License |
| 13 | along with this library; if not, write to the Free Software Foundation, Inc., |
| 14 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 15 | **********/ |
| 16 | #ifndef _BOOLEAN_HH |
| 17 | #define _BOOLEAN_HH |
| 18 | |
| 19 | #if defined(__BORLANDC__) || (!defined(USE_LIVE555_BOOLEAN) && defined(_MSC_VER) && _MSC_VER >= 1400) |
| 20 | // Use the "bool" type defined by the Borland compiler, and MSVC++ 8.0, Visual Studio 2005 and higher |
| 21 | typedef bool Boolean; |
| 22 | #define False false |
| 23 | #define True true |
| 24 | #else |
| 25 | typedef unsigned char Boolean; |
| 26 | #ifndef __MSHTML_LIBRARY_DEFINED__ |
| 27 | #ifndef False |
| 28 | const Boolean False = 0; |
| 29 | #endif |
| 30 | #ifndef True |
| 31 | const Boolean True = 1; |
| 32 | #endif |
| 33 | |
| 34 | #endif |
| 35 | #endif |
| 36 | |
| 37 | #endif |
| 38 | |