Skip to content

Commit

Permalink
playdate: change some preprocessor lines from #if to #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 23, 2024
1 parent 76b1e02 commit d02ea31
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/power/playdate/SDL_syspower.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "../../SDL_internal.h"

#ifndef SDL_POWER_DISABLED
#if SDL_POWER_PLAYDATE
#ifdef SDL_POWER_PLAYDATE

#include "SDL_power.h"
#include "../SDL_syspower.h"
Expand Down
2 changes: 1 addition & 1 deletion src/video/SDL_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static VideoBootStrap *bootstrap[] = {
#ifdef SDL_VIDEO_DRIVER_QNX
&QNX_bootstrap,
#endif
#if SDL_VIDEO_DRIVER_PLAYDATE
#ifdef SDL_VIDEO_DRIVER_PLAYDATE
&PLAYDATE_bootstrap,
#endif
#ifdef SDL_VIDEO_DRIVER_OS2
Expand Down
2 changes: 1 addition & 1 deletion src/video/playdate/SDL_playdate_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_PLAYDATE
#ifdef SDL_VIDEO_DRIVER_PLAYDATE

/* Being a null driver, there's no event stream. We just define stubs for
most of the API. */
Expand Down
2 changes: 1 addition & 1 deletion src/video/playdate/SDL_playdate_framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_PLAYDATE
#ifdef SDL_VIDEO_DRIVER_PLAYDATE

#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/video/playdate/SDL_playdate_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
#include "../../SDL_internal.h"

#if SDL_VIDEO_DRIVER_PLAYDATE
#ifdef SDL_VIDEO_DRIVER_PLAYDATE

/* Dummy SDL video driver implementation; this is just enough to make an
* SDL-based application THINK it's got a working video driver, for
Expand Down

0 comments on commit d02ea31

Please sign in to comment.