Changeset 793


Ignore:
Timestamp:
17/07/06 10:15:58 (6 years ago)
Author:
faa59
Message:

Move STDINT tests etc. to a new file called napiconfig.h
You need to include this as well as napi.h if you want to use
uint32_t etc.

We may need further discussion on this, but
it is a quick fix - the basic problem is that napi.h does not know
about the HAVE_STDINT_H macro and so the check causes build errors
on some machines. nxconfig.h is for "building nexus only" and so does
know about the HAVE_STDINT_H macro defined by autotools

Location:
trunk/include
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Makefile.am

    r435 r793  
    1 noinst_HEADERS = napi4.h napi5.h nxxml.h 
     1noinst_HEADERS = napi4.h napi5.h nxxml.h napiconfig.h 
    22 
    33include_HEADERS = napi.h napiu.h 
  • trunk/include/napi.h

    r786 r793  
    238238extern  NXstatus  NXmalloc(void** data, int rank, int dimensions[], int datatype); 
    239239extern  NXstatus  NXfree(void** data); 
    240  
    241 /* 
    242  * Type definitions 
    243  */ 
    244 #ifdef HAVE_STDINT_H 
    245 #include <stdint.h> 
    246 #else 
    247 typedef signed char             int8_t; 
    248 typedef short int               int16_t; 
    249 typedef int                     int32_t; 
    250 typedef unsigned char           uint8_t; 
    251 typedef unsigned short int      uint16_t; 
    252 typedef unsigned int            uint32_t; 
    253 #endif 
    254240 
    255241 
Note: See TracChangeset for help on using the changeset viewer.