8080 #include <errno.h> // Required for: EBUSY, EAGAIN
8181
8282 #define MAX_DRM_CACHED_BUFFERS 3
83- #endif // SUPPORT_DRM_CACHE
83+ #endif
8484
8585#ifndef EGL_OPENGL_ES3_BIT
8686 #define EGL_OPENGL_ES3_BIT 0x40
@@ -160,7 +160,7 @@ static FramebufferCache fbCache[MAX_DRM_CACHED_BUFFERS] = { 0 };
160160static volatile int fbCacheCount = 0 ;
161161static volatile bool pendingFlip = false;
162162static bool crtcSet = false;
163- #endif // SUPPORT_DRM_CACHE
163+ #endif
164164
165165//----------------------------------------------------------------------------------
166166// Global Variables Definition
@@ -253,7 +253,7 @@ static const short linuxToRaylibMap[KEYMAP_SIZE] = {
253253int InitPlatform (void ); // Initialize platform (graphics, inputs and more)
254254void ClosePlatform (void ); // Close platform
255255
256- #if defined( SUPPORT_SSH_KEYBOARD_RPI )
256+ #if SUPPORT_SSH_KEYBOARD_RPI
257257static void InitKeyboard (void ); // Initialize raw keyboard system
258258static void RestoreKeyboard (void ); // Restore keyboard system
259259static void ProcessKeyboard (void ); // Process keyboard events
@@ -1065,7 +1065,7 @@ const char *GetKeyName(int key)
10651065// Register all input events
10661066void PollInputEvents (void )
10671067{
1068- #if defined( SUPPORT_GESTURES_SYSTEM )
1068+ #if SUPPORT_GESTURES_SYSTEM
10691069 // NOTE: Gestures update must be called every frame to reset gestures correctly
10701070 // because ProcessGestureEvent() is just called on an event, not every frame
10711071 UpdateGestures ();
@@ -1088,7 +1088,7 @@ void PollInputEvents(void)
10881088
10891089 PollKeyboardEvents ();
10901090
1091- #if defined( SUPPORT_SSH_KEYBOARD_RPI )
1091+ #if SUPPORT_SSH_KEYBOARD_RPI
10921092 // NOTE: Keyboard reading could be done using input_event(s) or just read from stdin, both methods are used here
10931093 // stdin reading is still used for legacy purposes, it allows keyboard input trough SSH console
10941094 if (!platform .eventKeyboardMode ) ProcessKeyboard ();
@@ -1621,7 +1621,7 @@ int InitPlatform(void)
16211621 //----------------------------------------------------------------------------
16221622 InitEvdevInput (); // Evdev inputs initialization
16231623
1624- #if defined( SUPPORT_SSH_KEYBOARD_RPI )
1624+ #if SUPPORT_SSH_KEYBOARD_RPI
16251625 InitKeyboard (); // Keyboard init (stdin)
16261626#endif
16271627 //----------------------------------------------------------------------------
@@ -1741,7 +1741,7 @@ void ClosePlatform(void)
17411741 }
17421742}
17431743
1744- #if defined( SUPPORT_SSH_KEYBOARD_RPI )
1744+ #if SUPPORT_SSH_KEYBOARD_RPI
17451745// Initialize Keyboard system (using standard input)
17461746static void InitKeyboard (void )
17471747{
@@ -1900,7 +1900,7 @@ static void ProcessKeyboard(void)
19001900 }
19011901 }
19021902}
1903- #endif // SUPPORT_SSH_KEYBOARD_RPI
1903+ #endif // SUPPORT_SSH_KEYBOARD_RPI
19041904
19051905// Initialize user input from evdev(/dev/input/event<N>)
19061906// this means mouse, keyboard or gamepad devices
@@ -2196,7 +2196,7 @@ static void PollKeyboardEvents(void)
21962196 // Check if the event is a key event
21972197 if (event .type != EV_KEY ) continue ;
21982198
2199- #if defined( SUPPORT_SSH_KEYBOARD_RPI )
2199+ #if SUPPORT_SSH_KEYBOARD_RPI
22002200 // If the event was a key, we know a working keyboard is connected, so disable the SSH keyboard
22012201 platform .eventKeyboardMode = true;
22022202#endif
@@ -2552,7 +2552,7 @@ static void PollMouseEvents(void)
25522552 CORE .Input .Touch .pointId [i ] = -1 ;
25532553 }
25542554
2555- #if defined( SUPPORT_GESTURES_SYSTEM )
2555+ #if SUPPORT_GESTURES_SYSTEM
25562556 if (touchAction > -1 )
25572557 {
25582558 GestureEvent gestureEvent = { 0 };
0 commit comments