From 99f1bdee285dc2c696ae1fdcfebb90301dff2248 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 9 Jul 2008 02:56:40 +0000 Subject: [PATCH] add libnatpmp's new header "declspec.h" to svn --- third-party/libnatpmp/Makefile.am | 1 + third-party/libnatpmp/declspec.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 third-party/libnatpmp/declspec.h diff --git a/third-party/libnatpmp/Makefile.am b/third-party/libnatpmp/Makefile.am index 5e268e1b5..3fca7d53c 100644 --- a/third-party/libnatpmp/Makefile.am +++ b/third-party/libnatpmp/Makefile.am @@ -5,6 +5,7 @@ libnatpmp_a_SOURCES = \ natpmp.c noinst_HEADERS = \ + declspec.h \ getgateway.h \ natpmp.h diff --git a/third-party/libnatpmp/declspec.h b/third-party/libnatpmp/declspec.h new file mode 100644 index 000000000..ea479d1e6 --- /dev/null +++ b/third-party/libnatpmp/declspec.h @@ -0,0 +1,15 @@ +#ifndef __DECLSPEC_H__ +#define __DECLSPEC_H__ + +#if defined(WIN32) && !defined(STATICLIB) + #ifdef NATPMP_EXPORTS + #define LIBSPEC __declspec(dllexport) + #else + #define LIBSPEC __declspec(dllimport) + #endif +#else + #define LIBSPEC +#endif + +#endif +