diff --git a/awtk_config_common.py b/awtk_config_common.py index c0f87c85f..32c79c9e7 100644 --- a/awtk_config_common.py +++ b/awtk_config_common.py @@ -113,7 +113,7 @@ if OS_NAME == 'Darwin': OS_LIBS = ['stdc++', 'iconv', 'pthread', 'm', 'dl'] OS_LINKFLAGS = '-framework IOKit -framework Cocoa -framework QuartzCore -framework OpenGL -weak_framework Metal -weak_framework MetalKit' OS_FLAGS = OS_FLAGS + ' -DHAS_SEM_OPEN ' - OS_FLAGS = OS_FLAGS + ' -D__APPLE__ -DHAS_PTHREAD -DMACOS -Dmacintosh ' + OS_FLAGS = OS_FLAGS + ' -D__APPLE__ -DHAS_PTHREAD -DMACOS ' OS_FLAGS = OS_FLAGS + ' -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBGFX_CONFIG_RENDERER_METAL=1 ' OS_LIBPATH = ['/usr/local/lib/', sdl_lib] diff --git a/tools/api_doc_lint/ctags/general.h b/tools/api_doc_lint/ctags/general.h index f044f894e..2d93592bd 100644 --- a/tools/api_doc_lint/ctags/general.h +++ b/tools/api_doc_lint/ctags/general.h @@ -20,7 +20,7 @@ # include "e_amiga.h" #elif defined (DJGPP) # include "e_djgpp.h" -#elif defined (macintosh) +#elif defined (__APPLE__) # include "e_mac.h" #elif defined (MSDOS) || defined (WIN32) # include "e_msoft.h"