Added export specifier.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 29 Jun 2003 22:22:30 +0000 (22:22 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 29 Jun 2003 22:22:30 +0000 (22:22 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@587 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-mysql-ccache/shib-mysql-ccache.cpp

index e415226..112272d 100644 (file)
  * the layer 2 cache.
  */
 
-#ifndef WIN32
+// eventually we might be able to support autoconf via cygwin...
+#if defined (_MSC_VER) || defined(__BORLANDC__)
+# include "config_win32.h"
+#else
+# include "config.h"
+#endif
+
+#ifdef WIN32
+# define SHIBMYSQL_EXPORTS __declspec(dllexport)
+#else
+# define SHIBMYSQL_EXPORTS
+#endif
+
+#ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 
@@ -541,7 +554,7 @@ extern "C" CCache* new_mysql_ccache(void)
   return new ShibMySQLCCache();
 }
 
-extern "C" int saml_extension_init(void* context)
+extern "C" int SHIBMYSQL_EXPORTS saml_extension_init(void* context)
 {
   // register this ccache type
   CCache::registerFactory("mysql", &new_mysql_ccache);