NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
niftk-nightly
Libraries
NVAPI
video
video
dllexport.h
Go to the documentation of this file.
1
/*=============================================================================
2
3
libvideo: a library for SDI video processing.
4
5
Copyright (c) University College London (UCL). All rights reserved.
6
7
This software is distributed WITHOUT ANY WARRANTY; without even
8
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9
PURPOSE.
10
11
See LICENSE.txt in the top level directory for details.
12
13
=============================================================================*/
14
15
#pragma once
16
#ifndef LIBVIDEO_DLLEXPORT_H_4669DD5453A942E5914ACAF8788444C9
17
#define LIBVIDEO_DLLEXPORT_H_4669DD5453A942E5914ACAF8788444C9
18
19
20
// for the moment, libvideo works on windows only
21
// but lets just guard for it anyway
22
#ifdef _MSC_VER
23
24
#ifdef LIBVIDEO_BUILDING_DLL
25
#define LIBVIDEO_DLL_EXPORTS __declspec(dllexport)
26
#else
27
#define LIBVIDEO_DLL_EXPORTS __declspec(dllimport)
28
#endif
29
30
31
// various bits rely on safely dll-exporting class members which may reference
32
// crt components (that may not be explicitly declared to be exported)
33
// this checks that we are building against the dll version of the crt
34
#ifndef _DLL
35
#ifdef _MT
36
#error You are compiling against the static version of the CRT. This is not supported! Choose DLL instead!
37
#else
38
#pragma message("Warning: cannot tell which CRT version you are building with. Stuff might fail.")
39
#endif
40
#endif
41
42
#endif // _MSC_VER
43
44
45
#endif // LIBVIDEO_DLLEXPORT_H_4669DD5453A942E5914ACAF8788444C9
Generated on Thu Aug 4 2016 06:02:43 for NifTK by
1.8.8