[Groonga-commit] groonga/grnxx [master] Use __declspec(dllexport) and __declspec(dllimport).

アーカイブの一覧に戻る

susumu.yata null+****@clear*****
Sat Dec 15 12:35:21 JST 2012


susumu.yata	2012-12-15 12:35:21 +0900 (Sat, 15 Dec 2012)

  New Revision: a7f842e0c4c92bef6dea91d68af2c52dfc981976
  https://github.com/groonga/grnxx/commit/a7f842e0c4c92bef6dea91d68af2c52dfc981976

  Log:
    Use __declspec(dllexport) and __declspec(dllimport).

  Modified files:
    lib/features.hpp
    lib/grnxx.hpp

  Modified: lib/features.hpp (+12 -0)
===================================================================
--- lib/features.hpp    2012-12-14 17:40:14 +0900 (5331f22)
+++ lib/features.hpp    2012-12-15 12:35:21 +0900 (87f579c)
@@ -195,4 +195,16 @@
 # endif  // _POSIX_PRIORITY_SCHEDULING
 #endif  // GRNXX_WINDOWS
 
+// DLL features.
+
+#ifdef GRNXX_WINDOWS
+# ifdef DLL_EXPORT
+#  define GRNXX_EXPORT __declspec(dllexport)
+# else  // DLL_EXPORT
+#  define GRNXX_EXPORT __declspec(dllimport)
+# endif  // DLL_EXPORT
+#else  // GRNXX_WINDOWS
+# define GRNXX_EXPORT
+#endif  // GRNXX_WINDOWS
+
 #endif  // GRNXX_FEATURES_HPP

  Modified: lib/grnxx.hpp (+3 -1)
===================================================================
--- lib/grnxx.hpp    2012-12-14 17:40:14 +0900 (f0393f5)
+++ lib/grnxx.hpp    2012-12-15 12:35:21 +0900 (6c49aed)
@@ -18,9 +18,11 @@
 #ifndef GRNXX_GRNXX_HPP
 #define GRNXX_GRNXX_HPP
 
+#include "basic.hpp"
+
 namespace grnxx {
 
-class Grnxx {
+class GRNXX_EXPORT Grnxx {
  public:
   // The e-mail address for bug reports.
   static const char *bugreport();
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る