Fennet
Lightweight HTTP server library for C
Loading...
Searching...
No Matches
api.h
Go to the documentation of this file.
1
8#pragma once
9
10// On windows, if compiling to a DLL,
11// we need spec declarations for shared libraries:
12#if defined _WIN32 && !defined LIB_BUILD_STATIC
13#ifdef LIB_BUILD_SHARED
14// When building the DLL, we specify that
15// we want the classes and functions treated as export:
16#define FEN_API __declspec(dllexport)
17#else
18// When building the executables, we specify that
19// we want everything treated as import:
20#define FEN_API __declspec(dllimport)
21#endif
22#else
23// On other systems we can leave it empty:
24#define FEN_API
25#endif