Last change
on this file since 61 was 59, checked in by Marek Kurdej, 12 years ago |
Major: FileLib is now a shared library.
Added: FileLibConfig.h to handle dllimport/dllexport on Windows.
Note: MSVC warning C4251 is a normal thing when using an STL as a member field in a DLL-exported class.
|
File size:
728 bytes
|
Line | |
---|
1 | /**
|
---|
2 | *
|
---|
3 | * Distributed under the UTC Heudiascy Pacpus License, Version 1.0.
|
---|
4 | * Copyright (c) UTC Heudiasyc 2010 - 2013. All rights reserved.
|
---|
5 | *
|
---|
6 | * See the LICENSE file for more information or a copy at:
|
---|
7 | * http://www.hds.utc.fr/~kurdejma/LICENSE_1_0.txt
|
---|
8 | *
|
---|
9 | */
|
---|
10 |
|
---|
11 | #ifndef DEF_PACPUS_FILELIBCONFIG_H
|
---|
12 | #define DEF_PACPUS_FILELIBCONFIG_H
|
---|
13 |
|
---|
14 | // Export macro for FileLib DLL for Windows only
|
---|
15 | #ifdef WIN32
|
---|
16 | # ifdef FILELIB_EXPORTS
|
---|
17 | // make DLL
|
---|
18 | # define FILELIB_API __declspec(dllexport)
|
---|
19 | # else
|
---|
20 | // use DLL
|
---|
21 | # define FILELIB_API __declspec(dllimport)
|
---|
22 | # endif
|
---|
23 | #else
|
---|
24 | // On other platforms, simply ignore this
|
---|
25 | # define FILELIB_API
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | #endif // DEF_PACPUS_FILELIBCONFIG_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.