diff options
Diffstat (limited to 'odb/pgsql/endian-traits.cxx')
-rw-r--r-- | odb/pgsql/endian-traits.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/odb/pgsql/endian-traits.cxx b/odb/pgsql/endian-traits.cxx deleted file mode 100644 index 00420d0..0000000 --- a/odb/pgsql/endian-traits.cxx +++ /dev/null @@ -1,32 +0,0 @@ -// file : odb/pgsql/endian-traits.cxx -// author : Constantin Michael <constantin@codesynthesis.com> -// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC -// license : GNU GPL v2; see accompanying LICENSE file - -#include <odb/pgsql/endian-traits.hxx> - -namespace odb -{ - namespace pgsql - { - namespace details - { - namespace - { - endian_traits::endian - infer_host_endian () - { - short s (1); - char* c (reinterpret_cast<char*> (&s)); - - return *c == 0 ? - endian_traits::big : - endian_traits::little; - } - } - - const endian_traits::endian endian_traits::host_endian ( - infer_host_endian ()); - } - } -} |