diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-05-30 12:42:50 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-05-30 12:42:50 +0200 |
commit | 7f50d4e53837f5ac87f3c6a0c7cc6eea11c6e89b (patch) | |
tree | ddcc49fd0145e8baba8165aa5c889b8ad6d34d4b /odb/pgsql/endian-traits.cxx | |
parent | 88fb6802608818b70617340b1ed826c1b8a9f1ea (diff) |
Move endian-traits to odb/pgsql/details folder
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 ()); - } - } -} |