File: diavar.h

package info (click to toggle)
dia 0.97.3%2Bgit20160930-9
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 54,372 kB
  • sloc: ansic: 155,065; xml: 16,326; python: 6,641; cpp: 4,935; makefile: 3,833; sh: 540; perl: 137; sed: 19
file content (21 lines) | stat: -rw-r--r-- 639 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef DIAVAR_H
#define DIAVAR_H

#include <glib.h>

#ifdef G_OS_WIN32
#  ifdef LIBDIA_COMPILATION
#    define DIAVAR __declspec(dllexport)
#  else  /* !LIBDIA_COMPILATION */
#    define DIAVAR __declspec(dllimport)
#  endif /* !LIBDIA_COMPILATION */
#else  /* !G_OS_WIN32 */
#  /* DONT: define DIAVAR extern */
#  define DIAVAR /* empty */
#  /* extern and __declspec() are orthogonal - otherwise there wont be a difference between
#   * the header declared variable and the one defined in the implementation. At least clang-cl
#   * code generation would create multiple definitions, which later prohibit linking.
#   */
#endif

#endif