summaryrefslogtreecommitdiff
path: root/FL/mac.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2011-01-17 23:52:32 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2011-01-17 23:52:32 +0000
commit96c410dceb2adff87f067e44310b269f51fa7e90 (patch)
tree6271cc3ae105fdbe433b3f6176d4534abdf9661a /FL/mac.H
parentb841d90d3cdd2b27f9eeb80430a06cf73d4dd2b4 (diff)
Hiding the Fl_X class under WIN32 (STR #2522).
Applied Manolo's patch, modified to use FL_INTERNALS for explicit request in user code to expose class Fl_X. Also changed X11 and Mac OS to use FL_INTERNALS. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/mac.H')
-rw-r--r--FL/mac.H6
1 files changed, 3 insertions, 3 deletions
diff --git a/FL/mac.H b/FL/mac.H
index a3e83d64d..194caf7d3 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -3,7 +3,7 @@
//
// Mac header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2011 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
@@ -53,7 +53,7 @@ typedef void* Fl_Bitmask; // this is really a CGImageRef
#define MAC_OS_X_VERSION_10_6 1060
#endif
-#ifndef FL_LIBRARY // this part is used when compiling an application program
+#if !(defined(FL_LIBRARY) || defined(FL_INTERNALS)) // this part is used when compiling an application program
typedef void* Fl_Region;
typedef void* Fl_CGContextRef;
@@ -163,7 +163,7 @@ extern struct Fl_XMap {
} *fl_current_xmap;
extern FL_EXPORT Window fl_window;
-#endif // FL_LIBRARY
+#endif // FL_LIBRARY || FL_INTERNALS
extern FL_EXPORT Fl_CGContextRef fl_gc;
extern FL_EXPORT class Fl_Sys_Menu_Bar *fl_sys_menu_bar;