-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/xml.lite_tweaks
- Loading branch information
Showing
55 changed files
with
328 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#if !defined(WIN32) | ||
#if !(defined(WIN32) || defined(_WIN32)) | ||
#include "net/DaemonUnix.h" | ||
|
||
#include <iostream> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* ========================================================================= | ||
* This file is part of sys-c++ | ||
* ========================================================================= | ||
* | ||
* (C) Copyright 2020, Maxar Technologies, Inc. | ||
* | ||
* sys-c++ is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this program; If not, http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
#ifndef CODA_OSS_sys_Bit_h_INCLUDED_ | ||
#define CODA_OSS_sys_Bit_h_INCLUDED_ | ||
#pragma once | ||
|
||
#include "Conf.h" | ||
|
||
namespace sys | ||
{ | ||
// https://en.cppreference.com/w/cpp/types/endian | ||
enum class Endian | ||
{ | ||
#ifdef _WIN32 | ||
little = 0, | ||
big = 1, | ||
native = little | ||
#else | ||
little = __ORDER_LITTLE_ENDIAN__, | ||
big = __ORDER_BIG_ENDIAN__, | ||
native = __BYTE_ORDER__ | ||
#endif | ||
}; | ||
} | ||
|
||
|
||
|
||
#ifndef CODA_OSS_DEFINE_std_endian_ | ||
#if CODA_OSS_cpp20 | ||
#define CODA_OSS_DEFINE_std_endian_ 0 // std::endian part of C++20 | ||
#else | ||
#define CODA_OSS_DEFINE_std_endian_ CODA_OSS_AUGMENT_std_namespace // pre C++20 | ||
#endif // CODA_OSS_cpp20 | ||
#endif // CODA_OSS_DEFINE_std_endian_ | ||
|
||
#if CODA_OSS_DEFINE_std_endian_ | ||
// This is ever-so-slightly uncouth: we're not supposed to augment "std". | ||
namespace std | ||
{ | ||
using endian = sys::Endian; | ||
} | ||
#else | ||
|
||
// Not doing our own std::endian, can we get the real one? | ||
#if CODA_OSS_cpp17 && __has_include(<bit>) // __has_include is C++17 | ||
#include <bit> | ||
#endif // CODA_OSS_cpp20 | ||
|
||
#endif // CODA_OSS_DEFINE_std_endian_ | ||
|
||
#endif // CODA_OSS_sys_Bit_h_INCLUDED_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.