Datafox DFCom - API
04.03.11.00
Dokumentation zur Datafox Kommunikationsbibliothek (DFComDLL.dll / DFCom_x64.dll)
df_defines.h
gehe zur Dokumentation dieser Datei
1
/*
2
\brief Datei beinhaltet alle Defines die von der API benötigt werden.
3
4
\author Bernd Ottmann
5
\date 21.02.2003
6
7
\note Um die API-Version einzustellen und damit die zur Verfügung stehenden Funktionen anzupassen /sa DF_API_VERSION
8
*/
9
#pragma once
10
#ifndef DATAFOX_DEFINES_H
11
#ifndef DOXYGEN_SHOULD_SKIP_THIS
12
#define DATAFOX_DEFINES_H
13
#endif
14
21
#define DF_API_VERSION 0x04030800
22
23
// Eventuell fehlende typedefs ersetzen
24
#if defined(_MSC_VER) || defined(__MINGW32__)
25
#ifndef HANDLE
26
typedef
void
*
HANDLE
;
27
#endif
28
#else
29
#ifndef HANDLE
30
typedef
int
HANDLE
;
31
#endif
32
#endif
33
34
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
35
// +------------+ EXPORTIERTE FUNKTIONEN +----------------+
36
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
37
39
40
#ifdef DF_API_EXTERN
41
#undef DF_API_EXTERN
42
#endif
43
44
#if defined(_MSC_VER) || defined(__MINGW32__)
45
46
#ifdef __MINGW32__
47
#define DF_API_EXTERN_DECORATE extern "C" __attribute__ ((visibility ("default")))
48
#define DF_API_EXTERN extern "C" __attribute__ ((visibility ("default")))
49
#define DF_API_CALL
50
#if defined( DF_API_EXPORT )
51
// Einzubindende Bibliotheken: Version.lib, WSock32.lib
52
// DllGetVersion
53
#ifndef WIN32_LEAN_AND_MEAN
54
#define WIN32_LEAN_AND_MEAN
55
#endif
56
#include "shlwapi.h"
57
#endif
58
#else
59
#if defined( DF_API_EXPORT )
60
// Einzubindende Bibliotheken: Version.lib, WSock32.lib
61
#define DF_API_EXTERN_DECORATE extern "C" __declspec(dllexport)
62
// DllGetVersion
63
#ifndef WIN32_LEAN_AND_MEAN
64
#define WIN32_LEAN_AND_MEAN
65
#endif
66
#include "shlwapi.h"
67
#else
68
#define DF_API_EXTERN_DECORATE extern "C" __declspec(dllimport)
69
#endif
70
71
#define DF_API_EXTERN extern "C"
72
#define DF_API_CALL __stdcall
73
74
#endif
75
76
#else
77
78
#define DF_API_EXTERN_DECORATE extern "C" __attribute__ ((visibility ("default")))
79
#define DF_API_EXTERN extern "C" __attribute__ ((visibility ("default")))
80
#define DF_API_CALL
81
82
#endif
83
84
#endif
HANDLE
int HANDLE
Definition:
df_defines.h:30
© 2003-2018 Datafox GmbH