Program: gdcm
Module: $RCSfile: gdcmCommon.h,v $
Language: C++
- Date: $Date: 2005/01/09 00:13:26 $
- Version: $Revision: 1.46 $
+ Date: $Date: 2005/01/15 20:24:02 $
+ Version: $Revision: 1.50 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#endif //_MSC_VER
//-----------------------------------------------------------------------------
-#ifdef GDCM_HAVE_STDINT_H
+#ifdef CMAKE_HAVE_STDINT_H
#include <stdint.h> // For uint8_t uint16_t and uint32_t
#else
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define UINT32_MAX (4294967295U)
#endif
-#if defined(_MSC_VER) || defined(__BORLANDC__)
-#define GDCM_EXPORT __declspec( dllexport )
+#if defined(_WIN32) && defined(BUILD_SHARED_LIBS)
+ #ifdef gdcm_EXPORTS
+ #define GDCM_EXPORT __declspec( dllexport )
+ #else
+ #define GDCM_EXPORT __declspec( dllimport )
+ #endif
#else
-#define GDCM_EXPORT
+ #define GDCM_EXPORT
#endif
#include <string>
#define DICT_TS "dicomTS.dic"
#define DICT_VR "dicomVR.dic"
-extern const std::string GDCM_UNKNOWN;
-extern const std::string GDCM_UNFOUND;
-extern const std::string GDCM_BINLOADED;
-extern const std::string GDCM_NOTLOADED;
-extern const std::string GDCM_UNREAD;
+GDCM_EXPORT extern const std::string GDCM_UNKNOWN;
+GDCM_EXPORT extern const std::string GDCM_UNFOUND;
+GDCM_EXPORT extern const std::string GDCM_BINLOADED;
+GDCM_EXPORT extern const std::string GDCM_NOTLOADED;
+GDCM_EXPORT extern const std::string GDCM_UNREAD;
/// \brief TagKey is made to hold an "universal" (as in URL, Universal
/// Ressource Locator) key to a DocEntry i.e. a dicom tag.