merged
This commit is contained in:
@@ -30,6 +30,10 @@ PROD_HOST += testBitSet
|
||||
testBitSet_SRCS += testBitSet.cpp
|
||||
testBitSet_LIBS += pvData Com
|
||||
|
||||
PROD_HOST += testByteOrder
|
||||
testByteOrder_SRCS += testByteOrder.cpp
|
||||
testByteOrder_LIBS += Com
|
||||
|
||||
PROD_HOST += testByteBuffer
|
||||
testByteBuffer_SRCS += testByteBuffer.cpp
|
||||
testByteBuffer_LIBS += pvData Com
|
||||
|
||||
10
testApp/misc/testByteOrder.cpp
Normal file
10
testApp/misc/testByteOrder.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <epicsEndian.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("EPICS_BYTE_ORDER: %s\n", (EPICS_BYTE_ORDER == EPICS_ENDIAN_LITTLE) ? "little" : "big");
|
||||
printf("EPICS_FLOAT_WORD_ORDER: %s\n", (EPICS_FLOAT_WORD_ORDER == EPICS_ENDIAN_LITTLE) ? "little" : "big");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user