diff options
| author | Greg Ercolano <erco@seriss.com> | 2009-03-15 03:14:43 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2009-03-15 03:14:43 +0000 |
| commit | a68ea3c06961b6dbc5ad671c50f6a2e01624a689 (patch) | |
| tree | e3d3960e9c5c3795780e88b24c582e5d88c870ee /src/Fl_x.cxx | |
| parent | 3ed30905a958548b91b3edfe43ad5b3333d773eb (diff) | |
Surrounded all #warning's with #if defined(__GNUC__)
to prevent compiling problems on non-gnu compilers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 4413c7ed5..f8df4d257 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -340,7 +340,11 @@ void fl_new_ic() XIMStyles* xim_styles = NULL; #if USE_XFT + +#if defined(__GNUC__) #warning XFT support here +#endif /*__GNUC__*/ + if (!fs) { fnt = NULL;//fl_get_font_xfld(0, 14); if (!fnt) {fnt = "-misc-fixed-*";must_free_fnt=false;} @@ -451,7 +455,11 @@ void fl_set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win) XFreeFontSet(fl_display, fs); } #if USE_XFT + +#if defined(__GNUC__) #warning XFT support here +#endif /*__GNUC__*/ + fnt = NULL; // fl_get_font_xfld(font, size); if (!fnt) {fnt = "-misc-fixed-*";must_free_fnt=false;} fs = XCreateFontSet(fl_display, fnt, &missing_list, |
