[NeXus-code-tickets] [NeXusCode] #205: Visual Studio porting

NeXus Data Format Library and Applications noreply at nexusformat.org
Sat Mar 27 21:10:52 GMT 2010


#205: Visual Studio porting
---------------------------+------------------------------------------------
 Reporter:  Pedro.vicente  |       Owner:  Pedro.vicente
     Type:  enhancement    |      Status:  assigned     
 Priority:  major          |   Milestone:  4.3.0        
Component:  napi           |     Version:  trunk        
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by Pedro.vicente):

 (In [1452]) refs #205 modified code to run with Visual Studio 2008
 tested in: Linux x86_64 (gcc 4.1.2), Windows 7, (VS 2008)
 changes are:


 NXconvert-------------:

 added a getopt.c to /windows as source file

 #ifdef _MSC_VER
 #include "getopt.h"
 #else
 #include <unistd.h>
 #endif

 NXsummary---------------:

 added a stdint.h to /windows as source file


 #ifdef HAVE_STDINT_H

 #include <stdint.h>

 #else

 #ifdef _MSC_VER

 typedef signed __int64          int64_t;

 typedef unsigned __int64        uint64_t;

 #endif //_MSC_VER

 NXtranslate----------------:

 replaced
 __value
 with
 _value

 (__value is a VS keyword)



 replaced
  int dims[rank];

 with
 int dims[NX_MAXRANK];

 MXvalidate---------------------:

 replaced
 static int mkstemp(char* template)
 with
 static int mkstemp(char* template_name)


 Tclap: StdOutput.h -------------------------:

 #if defined (_MSC_VER)

 int stringLen = (std::min)( len - start, allowedLen );

 #else
             int stringLen = std::min( len - start, allowedLen );

 #endif

-- 
Ticket URL: <http://trac.nexusformat.org/code/ticket/205#comment:19>
NeXus Data Format Library and Applications <http://www.nexusformat.org/>
NeXus Data Format Library and Applications


More information about the NeXus-code-tickets mailing list