A series of #define statements map the generic function calls, such as StrCaselessCompare( x, y ), to OS-specific function calls, such as strcasecmp( x, y ) for Linux and VxWorks and _stricmp( x, y ) for Windows.
Examples of some of the #defines in
LVDefs_plat.h include the following:
-
#define BigEndian—Defines the data storage format as big endian or little endian. Define as 0 for little endian and 1 for big endian.
-
#define ALIGNMENT—Defines the alignment of data.
-
typedef
signed char int8;—In the LabVIEW C Code Run-Time Library code, int8 is used everywhere and must be defined to a signed 8-bit integer.
-
#define StrCopy(x, y) strcpy(x, y)—In the LabVIEW C Code Run-Time Library code, StrCopy is used everywhere and must be defined to a function that copies a string.
-
#define SocketSupport—Defines the sockets. Define as 1 to support BSD sockets.