ecl_endian_flip.hpp File Reference
#include <stdbool.h>
Include dependency graph for ecl_endian_flip.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ECLIPSE_BYTE_ORDER   __BIG_ENDIAN
 

Macro Definition Documentation

◆ ECLIPSE_BYTE_ORDER

#define ECLIPSE_BYTE_ORDER   __BIG_ENDIAN

This header file checks if the ECLIPSE endianness and the hardware endianness are equal, and defines the macro ECL_ENDIAN_FLIP accordingly.

All the ecl_xxx functions will use the ECL_ENDIAN_FLIP macro to determine whether the endian flip should be performed. When opening a fortio instance explicitly you can use the ECL_ENDIAN_FLIP macro to get the endianness correct (for ECLIPSE usage that is).