use lowercase --define switches (#17283)

This commit is contained in:
flywind 2021-03-07 19:08:41 +08:00 • committed by GitHub
commit 0e3ea16554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 45 additions and 45 deletions

View file

@ -265,7 +265,7 @@ const
ENET_PEER_RELIABLE_WINDOW_SIZE = 0x1000
ENET_PEER_FREE_RELIABLE_WINDOWS = 8
when defined(Linux) or true:
when defined(linux) or true:
import posix
const
ENET_SOCKET_NULL*: cint = -1
@ -295,7 +295,7 @@ when defined(Linux) or true:
template ENET_SOCKETSET_CHECK*(sockset, socket: untyped): untyped =
FD_ISSET(socket, addr((sockset)))
when defined(Windows):
when defined(windows):
## put the content of win32.h in here

View file

@ -93,7 +93,7 @@ const
GLUT_NORMAL* = 0
GLUT_OVERLAY* = 1
when defined(Windows):
when defined(windows):
const # Stroke font constants (use these in GLUT program).
GLUT_STROKE_ROMAN* = cast[Pointer](0)
GLUT_STROKE_MONO_ROMAN* = cast[Pointer](1) # Bitmap font constants (use these in GLUT program).