From a5935a3a5f398ddaecb94489d33abbedf2f0fa49 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周二, 12 11月 2019 10:24:46 +0800 Subject: [PATCH] fix submodules --- src/library/base/base.h | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/library/base/base.h b/src/library/base/base.h index 6623b20..898688f 100644 --- a/src/library/base/base.h +++ b/src/library/base/base.h @@ -1,7 +1,6 @@ #ifndef BASE_H_ #define BASE_H_ - #ifdef __cplusplus extern "C" { #endif @@ -18,18 +17,17 @@ #define DllExport __declspec( dllexport ) #ifndef __cplusplus +#ifndef _MSC_VER +#include <stdbool.h> +#else typedef int bool; #define false 0 #define true -1 #endif +#endif #endif /* #define _DEBUG */ - -#define cmax(a,b) \ - ({ __typeof__ (a) _a = (a); \ - __typeof__ (b) _b = (b); \ - _a > _b ? _a : _b; }) #define cmin(a,b) \ ({ __typeof__ (a) _a = (a); \ -- Gitblit v1.9.1