Use #ifdef/#ifndef instead of #if defined/#if \!defined

This commit is contained in:
Anonymous Maarten
2023-03-30 20:26:31 +02:00
committed by Anonymous Maarten
parent 308bcbbe76
commit b6ae281e97
129 changed files with 450 additions and 450 deletions

View File

@@ -24,7 +24,7 @@
#include "../core/windows/SDL_windows.h"
#endif
#if defined(__ANDROID__)
#ifdef __ANDROID__
#include "../core/android/SDL_android.h"
#endif
@@ -36,7 +36,7 @@ static size_t SDL_envmemlen = 0;
/* Put a variable into the environment */
/* Note: Name may not contain a '=' character. (Reference: http://www.unix.com/man-page/Linux/3/setenv/) */
#if defined(HAVE_SETENV)
#ifdef HAVE_SETENV
int SDL_setenv(const char *name, const char *value, int overwrite)
{
/* Input validation */
@@ -160,11 +160,11 @@ int SDL_setenv(const char *name, const char *value, int overwrite)
#endif
/* Retrieve a variable named "name" from the environment */
#if defined(HAVE_GETENV)
#ifdef HAVE_GETENV
char *
SDL_getenv(const char *name)
{
#if defined(__ANDROID__)
#ifdef __ANDROID__
/* Make sure variables from the application manifest are available */
Android_JNI_GetManifestEnvironmentVariables();
#endif