add the DllExport label for backward compatibility

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-28 18:59:41 +00:00
commit 52cadebd40
2 changed files with 14 additions and 3 deletions

View file

@ -9,11 +9,13 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef WIN32
#ifndef DllExport
# ifdef WIN32
# define DllExport __declspec( dllexport )
#else
# else
# define DllExport
#endif
# endif
#endif
%}
#if 0

View file

@ -86,3 +86,12 @@
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
# define _CRT_SECURE_NO_DEPRECATE
#endif
/* Add DllExport for backward compatibility */
#ifndef DllExport
# if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# define DllExport __declspec( dllexport )
# else
# define DllExport
# endif
#endif