Quellcode durchsuchen

[hlc] move some windows.h only undefs to hlc_main (#809)

Yuxiao Mao vor 1 Monat
Ursprung
Commit
88acdc40d6
2 geänderte Dateien mit 20 neuen und 26 gelöschten Zeilen
  1. 0 26
      src/hlc.h
  2. 20 0
      src/hlc_main.c

+ 0 - 26
src/hlc.h

@@ -34,43 +34,17 @@
 #ifdef HLC_BOOT
 
 // undefine some commonly used names that can clash with class/var name
-#undef CONST
-#undef IN
-#undef OUT
-#undef OPTIONAL
 #undef stdin
 #undef stdout
 #undef stderr
-#undef DELETE
-#undef ERROR
-#undef NO_ERROR
 #undef EOF
-#undef STRICT
-#undef TRUE
-#undef FALSE
-#undef CW_USEDEFAULT
-#undef HIDDEN
-#undef RESIZABLE
-#undef __SIGN
-#undef far
-#undef FAR
-#undef near
-#undef NEAR
-#undef GENERIC_READ
 #undef INT_MAX
 #undef INT_MIN
 #undef BIG_ENDIAN
 #undef LITTLE_ENDIAN
-#undef ALTERNATE
-#undef DIFFERENCE
-#undef DOUBLE_CLICK
-#undef WAIT_FAILED
 #undef OVERFLOW
 #undef UNDERFLOW
 #undef DOMAIN
-#undef TRANSPARENT
-#undef CopyFile
-#undef COLOR_HIGHLIGHT
 #undef __valid
 
 // disable some warnings triggered by HLC code generator

+ 20 - 0
src/hlc_main.c

@@ -40,6 +40,26 @@
 #	undef IN
 #	undef OUT
 #	undef OPTIONAL
+#	undef DELETE
+#	undef ERROR
+#	undef NO_ERROR
+#	undef STRICT
+#	undef TRUE
+#	undef FALSE
+#	undef CW_USEDEFAULT
+#	undef far
+#	undef FAR
+#	undef near
+#	undef NEAR
+#	undef GENERIC_READ
+#	undef ALTERNATE
+#	undef DIFFERENCE
+#	undef DOUBLE_CLICK
+#	undef WAIT_FAILED
+#	undef TRANSPARENT
+#	undef CopyFile
+#	undef COLOR_HIGHLIGHT
+#	undef __valid
 #endif
 
 #ifdef HL_CONSOLE