OSDN Git Service

[Refactor] #1415 Removed unused preprocessor 'linux'
authorHourier <grapefox.whitelucifer.0408@gmail.com>
Thu, 2 Sep 2021 13:37:59 +0000 (22:37 +0900)
committerHourier <grapefox.whitelucifer.0408@gmail.com>
Thu, 2 Sep 2021 13:37:59 +0000 (22:37 +0900)
src/main-cap.cpp
src/main-gcu.cpp
src/system/h-system.h

index ed764f3..fd204d2 100644 (file)
  * Mega-Hack -- try to guess when "POSIX" is available.
  * If the user defines two of these, we will probably crash.
  */
-#  if defined(_POSIX_VERSION)
-#   define USE_TPOSIX
-#  else
-#   if defined(linux)
-#    define USE_TERMIO
-#   else
-#    define USE_TCHARS
-#   endif
-#  endif
+#ifdef _POSIX_VERSION
+  #define USE_TPOSIX
+#else
+  #define USE_TCHARS
+#endif
 
 /*
  * POSIX stuff
index 669a15c..3d8b514 100644 (file)
@@ -207,13 +207,9 @@ static term_data data[MAX_TERM_DATA];
 #if defined(_POSIX_VERSION)
 #define USE_TPOSIX
 #else
-#if defined(linux)
-#define USE_TERMIO
-#else
 #define USE_TCHARS
 #endif
 #endif
-#endif
 
 /*
  * Try redefining the colors at startup.
index be7a1c5..a000767 100644 (file)
@@ -34,9 +34,6 @@
     #include <sys/timeb.h>
     #include <sys/types.h>
     #include <unistd.h>
-    #ifdef linux
-      #include <sys/time.h>
-    #endif
   #endif
 #endif