certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/libHLA HLAbuffer.hh


From: certi-cvs
Subject: [certi-cvs] certi/libHLA HLAbuffer.hh
Date: Fri, 14 Nov 2008 23:24:16 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Petr Gotthard <gotthardp>       08/11/14 23:24:16

Modified files:
        libHLA         : HLAbuffer.hh 

Log message:
        Fixed DLL export/import.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/HLAbuffer.hh?cvsroot=certi&r1=1.2&r2=1.3

Patches:
Index: HLAbuffer.hh
===================================================================
RCS file: /sources/certi/certi/libHLA/HLAbuffer.hh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- HLAbuffer.hh        29 Sep 2008 21:05:20 -0000      1.2
+++ HLAbuffer.hh        14 Nov 2008 23:24:16 -0000      1.3
@@ -11,7 +11,7 @@
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Lesser General Public License for more details.
 //
-// $Id: HLAbuffer.hh,v 1.2 2008/09/29 21:05:20 erk Exp $
+// $Id: HLAbuffer.hh,v 1.3 2008/11/14 23:24:16 gotthardp Exp $
 // ----------------------------------------------------------------------------
 
 #ifndef _HLATYPES_BUFFER_HH
@@ -35,6 +35,16 @@
 #include <stdint.h>
 #endif
 
+#if defined(_WIN32)
+    #if defined(HLA_EXPORTS)
+        #define HLA_EXPORT __declspec(dllexport)
+    #else
+        #define HLA_EXPORT __declspec(dllimport)
+    #endif
+#else
+    #define HLA_EXPORT
+#endif
+
 namespace libhla {
 
 std::ostream& __print_buffer(std::ostream& stream, const void *buffer, size_t 
length);
@@ -45,7 +55,7 @@
  * All structures must have no virtual functions and no non-static members.
  */
 
-class __HLAbuffer
+class HLA_EXPORT __HLAbuffer
 {
 private:
     // static buffer for all instantiations of the HLAdata template
@@ -154,5 +164,5 @@
 
 #endif // _HLATYPES_BUFFER_HH
 
-// $Id: HLAbuffer.hh,v 1.2 2008/09/29 21:05:20 erk Exp $
+// $Id: HLAbuffer.hh,v 1.3 2008/11/14 23:24:16 gotthardp Exp $
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]