detect_endian.cpp
Go to the documentation of this file.
00001 
00009 /*****************************************************************************
00010 ** Includes
00011 *****************************************************************************/
00012 
00013 #include <iostream>
00014 #include "../../include/ecl/config/endianness.hpp"
00015 
00016 /*****************************************************************************
00017 ** Main
00018 *****************************************************************************/
00019 
00020 int main(int argc, char **argv) {
00021 
00022         if ( ecl::is_big_endian() ) {
00023                 std::cout << "Platform is big endian." << std::endl;
00024         } else {
00025                 std::cout << "Platform is little endian." << std::endl;
00026         }
00027         return 0;
00028 }
00029 


ecl_config
Author(s): Daniel Stonier
autogenerated on Sun Oct 5 2014 23:35:24