sdl12-compat: replaced all unix preprocessor checks with __unix__

From 2fd4922bc2012c542d967960849a5087f01463bd Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 22 Jun 2021 15:50:50 +0300
Subject: [PATCH] replaced all unix preprocessor checks with __unix__

---
 include/SDL/SDL_config.h | 4 ++--
 include/SDL/SDL_syswm.h  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/SDL/SDL_config.h b/include/SDL/SDL_config.h
index 56cbbe5..6ab8c87 100644
--- a/include/SDL/SDL_config.h
+++ b/include/SDL/SDL_config.h
@@ -72,7 +72,7 @@ stage, though. Send patches if your platform lacks something. */
 #define HAVE_MATH_H 1
 #endif
 
-#if defined(unix) || defined(__unix__) || defined(__APPLE__)
+#if defined(__unix__) || defined(__APPLE__)
 #define HAVE_ICONV_H 1
 #define HAVE_SIGNAL_H 1
 #endif
@@ -156,7 +156,7 @@ stage, though. Send patches if your platform lacks something. */
 #define HAVE_SEM_TIMEDWAIT 1
 #endif
 
-#if defined(unix) || defined(__unix__) || defined(__APPLE__)
+#if defined(__unix__) || defined(__APPLE__)
 #define HAVE_ICONV 1
 #define HAVE_SIGACTION 1
 #define HAVE_SA_SIGACTION 1
diff --git a/include/SDL/SDL_syswm.h b/include/SDL/SDL_syswm.h
index dc645c8..b6b0c9e 100644
--- a/include/SDL/SDL_syswm.h
+++ b/include/SDL/SDL_syswm.h
@@ -32,7 +32,7 @@ real SDL-1.2 available to you. */
 
 #ifndef SDL_PROTOTYPES_ONLY
 
-#   if defined(unix) && !defined(__APPLE__) && defined(__has_include)
+#   if defined(__unix__) && !defined(__APPLE__) && defined(__has_include)
 #       if __has_include(<X11/Xlib.h>)
 #           define SDL12_COMPAT_SUPPORT_SYSWM_X11 1
 #       endif