Changeset 1438


Ignore:
Timestamp:
28/02/10 07:33:49 (2 years ago)
Author:
Pedro.vicente
Message:

refs #205
disabled the declspec(dllexport) and declspec(dllexport) macros
eliminated NXnumtype getType(char number), it causes compiling errors due to NXnumtype getType(int8_t number)

tested : Visual Studio 2008, Linux 2.6.18 x86_64 with gcc 4.1.2

Location:
trunk
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/cpp/NeXusFile.cpp

    r1379 r1438  
    4141  } 
    4242 
     43  /* 
    4344  template<> 
    4445  NXDLL_EXPORT NXnumtype getType(char number) { 
     
    4748    throw Exception(msg.str()); 
    4849  } 
     50  */ 
    4951 
    5052  // template specialisations for types we know  
  • trunk/bindings/cpp/NeXusFile.hpp

    r1375 r1438  
    99 
    1010#ifdef _WIN32 
     11 
     12#ifdef _MSC_VER  
     13#  define NXDLL_EXPORT 
     14#else 
    1115#  if IN_NEXUS_CPP_LIBRARY 
    1216#    define NXDLL_EXPORT __declspec(dllexport) 
     
    1418#    define NXDLL_EXPORT __declspec(dllimport) 
    1519#  endif 
    16 #else 
     20#endif /* _MSC_VER */ 
     21 
     22#else /* _WIN32 */ 
    1723#  define NXDLL_EXPORT  
    1824#endif /* _WIN32 */ 
  • trunk/windows/bindings/cpp/nexusCPP.vcproj

    r1437 r1438  
    4343                                Optimization="0" 
    4444                                AdditionalIncludeDirectories="..\..\..\include;..\..\..\Windows_extra\include" 
    45                                 PreprocessorDefinitions="WIN32;_DEBUG;_LIB" 
     45                                PreprocessorDefinitions="WIN32;_DEBUG;_LIB;;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE" 
    4646                                MinimalRebuild="true" 
    4747                                BasicRuntimeChecks="3" 
     
    107107                                EnableIntrinsicFunctions="true" 
    108108                                AdditionalIncludeDirectories="..\..\..\include;..\..\..\Windows_extra\include" 
    109                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 
     109                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE" 
    110110                                RuntimeLibrary="0" 
    111111                                EnableFunctionLevelLinking="true" 
Note: See TracChangeset for help on using the changeset viewer.