     ModeStereo,
     ModeFakeSingle
 #if FLTK_API_VERSION >= 10304
+#ifdef GLSUPPORT
     , ModeOpenGL3
 #endif
+#endif
   ]
-#endif /* GLSUPPORT */
 
 {#enum AlignType {} deriving (Show, Eq, Ord) #}
 newtype Alignments = Alignments [AlignType] deriving Show

     GlutWindowProperties(..),
     GlutCursor(..),
     glutCursorFullCrossHair,
     -- * Various modes
     Mode(..),
     Modes(..),
     single,
     allModes,
#endif
     -- * Alignment
     Alignments(..),
     AlignType(..),

 ModeMultisample = FL_MULTISAMPLE,
 ModeStereo      = FL_STEREO,
 ModeFakeSingle  = FL_FAKE_SINGLE
#ifdef GLSUPPORT
#if FLTK_API_VERSION >= 10304
 , ModeOpenGL3     = FL_OPENGL3
#endif
#endif
};
enum AlignType {
