FLTK 1.4.4: Fl_Export.H Source File

FLTK 1.4.4

Loading...
Searching...
No Matches
Fl_Export.H
1/*
2 * Windows DLL export .
3 *
4 * Copyright 1998-2018 by Bill Spitzak and others.
5 *
6 * This library is free software. Distribution and use rights are outlined in
7 * the file "COPYING" which should have been included with this file. If this
8 * file is missing or damaged, see the license at:
9 *
10 * https://www.fltk.org/COPYING.php
11 *
12 * Please see the following page on how to report bugs and issues:
13 *
14 * https://www.fltk.org/bugs.php
15 */
16
17#ifndef Fl_Export_H
18# define Fl_Export_H
19
20/*
21 * The following is used when building DLLs under Windows
22 * and when building .so's under unix/linux.
23 */
24
25# if defined(FL_DLL)
26# ifdef FL_LIBRARY
27# define FL_EXPORT __declspec(dllexport)
28# else
29# define FL_EXPORT __declspec(dllimport)
30# endif /* FL_LIBRARY */
31# elif __GNUC__ >= 4
32# define FL_EXPORT __attribute__ ((visibility ("default")))
33# else
34# define FL_EXPORT
35# endif /* FL_DLL */
36
37#endif /* !Fl_Export_H */