JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix cygwin, from MrD <mrw@eandem.co.uk>
authorMarco Peereboom <marco@conformal.com>
Thu, 2 Aug 2012 17:48:26 +0000 (12:48 -0500)
committerMarco Peereboom <marco@conformal.com>
Thu, 2 Aug 2012 17:48:26 +0000 (12:48 -0500)
spectrwm.c

index 7d2d1a8..bd98c9d 100644 (file)
@@ -112,15 +112,17 @@ static const char *buildstr = SPECTRWM_BUILDSTR;
 static const char      *buildstr = SPECTRWM_VERSION;
 #endif
 
-#if RANDR_MAJOR < 1
-#  error XRandR versions less than 1.0 are not supported
+#if !defined(__CYGWIN__) /* cygwin chokes on xrandr stuff */
+#  if RANDR_MAJOR < 1
+#    error XRandR versions less than 1.0 are not supported
 #endif
 
-#if RANDR_MAJOR >= 1
-#if RANDR_MINOR >= 2
-#define SWM_XRR_HAS_CRTC
-#endif
-#endif
+#  if RANDR_MAJOR >= 1
+#    if RANDR_MINOR >= 2
+#      define SWM_XRR_HAS_CRTC
+#    endif
+#  endif
+#endif /* __CYGWIN__ */
 
 #ifndef XCB_ICCCM_NUM_WM_HINTS_ELEMENTS
 #define XCB_ICCCM_SIZE_HINT_P_MIN_SIZE         XCB_SIZE_HINT_P_MIN_SIZE