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:
-
typedef
signed char int8;—In the LabVIEW C Code Generator run-time code, int8 is used everywhere and must be defined to a signed 8-bit quantity.
-
#define StrCopy(x, y) strcpy(x, y)—In the LabVIEW C Code Generator run-time code, StrCopy is used everywhere and must be defined to a function that copies a string.
-
#define SocketSupport 1—Defines the sockets. Therefore, TCP/IP functions are supported on this platform.
-
#define BigEndian—Defines the data storage format as big endian or little endian.