From 199f52fe3c0d827cc85a3b7b15a3d721699f6124 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Tue, 15 Aug 2023 00:35:01 +0800 Subject: [PATCH] [NFC] eliminate macro redefinition errors Fix the macro redefinition errors showed in https://github.com/alibaba/async_simple/actions/runs/5854786312/job/15871324947. --- async_simple/executors/SimpleIOExecutor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async_simple/executors/SimpleIOExecutor.h b/async_simple/executors/SimpleIOExecutor.h index d2a848aa9..c316b53cc 100644 --- a/async_simple/executors/SimpleIOExecutor.h +++ b/async_simple/executors/SimpleIOExecutor.h @@ -18,7 +18,7 @@ #include "async_simple/IOExecutor.h" -#if not __has_include() +#if !__has_include() && !defined(ASYNC_SIMPLE_HAS_NOT_AIO) #define ASYNC_SIMPLE_HAS_NOT_AIO #endif