Mercurial > hg > libxtract
diff xtract/xtract_helper.h @ 211:ef80f7c52c6d
add VC2012 project to compile static and dynamic lib, also fix some C
issues
author | Q <andrea@nocte.co.uk> |
---|---|
date | Thu, 27 Mar 2014 09:48:26 +0000 |
parents | baaa9d8b4d10 |
children | 8c768f32a6a8 |
line wrap: on
line diff
--- a/xtract/xtract_helper.h Mon Mar 17 16:39:30 2014 +0000 +++ b/xtract/xtract_helper.h Thu Mar 27 09:48:26 2014 +0000 @@ -30,7 +30,16 @@ extern "C" { #endif -#include <stdbool.h> +#ifdef _MSC_VER + #ifndef __cplusplus + typedef int bool; + #define false 0 + #define true 1 + #endif +#else + #include <stdbool.h> +#endif + /** * \defgroup helper helper functions