0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00
openvpn3/openvpn/common
David Sommerseth 0baa4f19eb
endian64: Check of __GLIBC__ availability
When compiling this code using the musl libc instead of glibc, it fails
with this error:

./openvpn3-core/openvpn/common/endian64.hpp: In function 'uint64_t openvpn::Endian::rev64(uint64_t)':
./openvpn3-core/openvpn/common/endian64.hpp:53:14: error: '__bswap_constant_64' was not declared in this scope
   53 |       return __bswap_constant_64(value);
      |              ^~~~~~~~~~~~~~~~~~~

The __bswap_constant_64() is a function provided by the glibc library
and is not available in all other libc implementations.  To avoid this,
we fallback to the same solution used for Clang, which builds fine.  But
to avoid missing a match on the MINGW32 or MSC environments, the #if
condition checks are slightly reordered.

Signed-off-by: David Sommerseth <davids@openvpn.net>
2021-11-15 17:30:46 +01:00
..
abort.hpp Update copyrights 2020-03-18 19:37:32 +01:00
action.hpp Update copyrights 2020-03-18 19:37:32 +01:00
actionthread.hpp Update copyrights 2020-03-18 19:37:32 +01:00
appversion.hpp Update copyrights 2020-03-18 19:37:32 +01:00
arch.hpp Update copyrights 2020-03-18 19:37:32 +01:00
argv.hpp Update copyrights 2020-03-18 19:37:32 +01:00
arraysize.hpp Update copyrights 2020-03-18 19:37:32 +01:00
asyncsleep.hpp Update copyrights 2020-03-18 19:37:32 +01:00
autoreset.hpp Update copyrights 2020-03-18 19:37:32 +01:00
base64.hpp Update copyrights 2020-03-18 19:37:32 +01:00
bigmutex.hpp Update copyrights 2020-03-18 19:37:32 +01:00
binprefix.hpp Update copyrights 2020-03-18 19:37:32 +01:00
circ_list.hpp Update copyrights 2020-03-18 19:37:32 +01:00
clamp.hpp clamp: added variant clamp_nonzero() to only clamp non-zero values 2021-08-17 13:07:40 -06:00
cleanup.hpp Update copyrights 2020-03-18 19:37:32 +01:00
complog.hpp Update copyrights 2020-03-18 19:37:32 +01:00
core.hpp Replace OPENVPN_PLATFORM_TYPE_APPLE with __APPLE__ 2021-05-05 22:25:20 +02:00
count.hpp Update copyrights 2020-03-18 19:37:32 +01:00
daemon.hpp LogSetup: make virtual void reopen() non-const and add MultiLogSetup class 2020-08-19 18:52:57 +02:00
demangle.hpp Update copyrights 2020-03-18 19:37:32 +01:00
destruct.hpp Update copyrights 2020-03-18 19:37:32 +01:00
endian64.hpp endian64: Check of __GLIBC__ availability 2021-11-15 17:30:46 +01:00
endian_platform.hpp Update copyrights 2020-03-18 19:37:32 +01:00
endian.hpp Update copyrights 2020-03-18 19:37:32 +01:00
enumdir.hpp Update copyrights 2020-03-18 19:37:32 +01:00
environ.hpp Update copyrights 2020-03-18 19:37:32 +01:00
exception.hpp Update copyrights 2020-03-18 19:37:32 +01:00
extern.hpp Update copyrights 2020-03-18 19:37:32 +01:00
ffs.hpp Update copyrights 2020-03-18 19:37:32 +01:00
file.hpp Update copyrights 2020-03-18 19:37:32 +01:00
fileatomic.hpp Update copyrights 2020-03-18 19:37:32 +01:00
fileunix.hpp read_binary_unix_fast: loop to fill buffer 2020-09-02 20:38:04 +02:00
format.hpp Update copyrights 2020-03-18 19:37:32 +01:00
function.hpp Update copyrights 2020-03-18 19:37:32 +01:00
getopt.hpp mingw: fix various warnings 2020-03-11 19:44:40 +01:00
getpw.hpp Update copyrights 2020-03-18 19:37:32 +01:00
glob.hpp Update copyrights 2020-03-18 19:37:32 +01:00
hash.hpp Replaced CityHash with XXHash 2020-12-09 07:51:10 -07:00
hexstr.hpp Update copyrights 2020-03-18 19:37:32 +01:00
hostlist.hpp Update copyrights 2020-03-18 19:37:32 +01:00
hostname.hpp Update copyrights 2020-03-18 19:37:32 +01:00
hostport.hpp Update copyrights 2020-03-18 19:37:32 +01:00
indexed_title.hpp Added class IndexedTitle for referring to array indices when generating errors 2020-04-24 13:22:50 +02:00
jsonfile.hpp fileunix, stat, json: allow file read methods to obtain nanosecond-scale mod time 2020-08-19 18:52:44 +02:00
jsonhelper.hpp json::cast: fixed minor compile-time issue with 4 parameter version 2021-01-11 11:40:25 -07:00
jsonhelperfmt.hpp Update copyrights 2020-03-18 19:37:32 +01:00
jsonlib.hpp Update copyrights 2020-03-18 19:37:32 +01:00
lex.hpp push-continuation: added new server-side fragmentor 2020-08-19 18:53:00 +02:00
likely.hpp Update copyrights 2020-03-18 19:37:32 +01:00
link.hpp Update copyrights 2020-03-18 19:37:32 +01:00
logrotate.hpp Update copyrights 2020-03-18 19:37:32 +01:00
logsetup.hpp LogSetup: inherit from thread-safe RC 2020-09-28 00:54:52 -06:00
memneq.hpp Update copyrights 2020-03-18 19:37:32 +01:00
mode.hpp Update copyrights 2020-03-18 19:37:32 +01:00
modstat.hpp Update copyrights 2020-03-18 19:37:32 +01:00
msfind.hpp Update copyrights 2020-03-18 19:37:32 +01:00
msgwin.hpp Update copyrights 2020-03-18 19:37:32 +01:00
number.hpp Update copyrights 2020-03-18 19:37:32 +01:00
olong.hpp Update copyrights 2020-03-18 19:37:32 +01:00
option_error.hpp Update copyrights 2020-03-18 19:37:32 +01:00
options.hpp add support for --pull-filter option 2021-02-11 02:14:11 +01:00
ostream.hpp Update copyrights 2020-03-18 19:37:32 +01:00
path.hpp Update copyrights 2020-03-18 19:37:32 +01:00
peercred.hpp Silence warnings about signedness mismatch 2021-08-18 19:38:05 +02:00
persistfile.hpp Silence warnings about signedness mismatch 2021-08-18 19:38:05 +02:00
pipe.hpp Update copyrights 2020-03-18 19:37:32 +01:00
platform_name.hpp Update copyrights 2020-03-18 19:37:32 +01:00
platform_string.hpp Update copyrights 2020-03-18 19:37:32 +01:00
platform.hpp Replace OPENVPN_PLATFORM_TYPE_APPLE with __APPLE__ 2021-05-05 22:25:20 +02:00
process.hpp Update copyrights 2020-03-18 19:37:32 +01:00
pthreadcond.hpp Update copyrights 2020-03-18 19:37:32 +01:00
rc.hpp initialize NotifyBase::next pointer 2021-05-18 06:13:31 +02:00
redir.hpp Update copyrights 2020-03-18 19:37:32 +01:00
runcontext.hpp RunContext: added io_context_ptr() method 2021-08-17 13:07:40 -06:00
scoped_fd.hpp Update copyrights 2020-03-18 19:37:32 +01:00
sess_id.hpp SessionIDType::find_weak: fixed a possible segfault if map.bucket_count() is zero (bug) 2020-08-19 18:53:05 +02:00
sfinae.hpp WS::ClientSet: silently ignore when Asio is missing the results.randomize() method 2020-01-29 09:27:46 -07:00
signal_name.hpp Update copyrights 2020-03-18 19:37:32 +01:00
signal.hpp make class Signal d'tor noexcept(false) 2021-05-27 17:27:51 +02:00
size.hpp Update copyrights 2020-03-18 19:37:32 +01:00
sleep.hpp Update copyrights 2020-03-18 19:37:32 +01:00
sockopt.hpp Update copyrights 2020-03-18 19:37:32 +01:00
socktypes.hpp Update copyrights 2020-03-18 19:37:32 +01:00
split.hpp Update copyrights 2020-03-18 19:37:32 +01:00
splitlines.hpp Update copyrights 2020-03-18 19:37:32 +01:00
stat.hpp Added is_directory() method 2020-09-02 20:38:09 +02:00
stop.hpp Update copyrights 2020-03-18 19:37:32 +01:00
strerror.hpp Update copyrights 2020-03-18 19:37:32 +01:00
string.hpp string: minor change of assumption about std::string::reserve() method 2021-05-31 13:34:44 -06:00
stringize.hpp Update copyrights 2020-03-18 19:37:32 +01:00
stringtempl2.hpp StringTempl: StringTempl::empty() should just call the object's underlying empty() method 2020-04-24 13:22:47 +02:00
stringtempl.hpp Update copyrights 2020-03-18 19:37:32 +01:00
strneq.hpp strneq.hpp: added #pragma once 2021-08-17 13:07:40 -06:00
tempfile.hpp Update copyrights 2020-03-18 19:37:32 +01:00
to_string.hpp Update copyrights 2020-03-18 19:37:32 +01:00
umask.hpp Update copyrights 2020-03-18 19:37:32 +01:00
unicode-impl.hpp Added head comments to all source files. 2012-11-23 06:18:43 +00:00
unicode.hpp remove unnecessary const from return type qualifier 2021-05-18 06:13:31 +02:00
uniqueptr.hpp Fix ASAN detected new/delete mismatches 2021-10-27 20:14:22 +02:00
usecount.hpp Update copyrights 2020-03-18 19:37:32 +01:00
usergroup.hpp Update copyrights 2020-03-18 19:37:32 +01:00
userpass.hpp Update copyrights 2020-03-18 19:37:32 +01:00
valgrind.hpp Update copyrights 2020-03-18 19:37:32 +01:00
version.hpp version: Reset git:master reference to 3.7 2021-04-14 22:48:43 +02:00
waitbarrier.hpp Update copyrights 2020-03-18 19:37:32 +01:00
write.hpp Update copyrights 2020-03-18 19:37:32 +01:00
writeprivate.hpp Update copyrights 2020-03-18 19:37:32 +01:00
wstring.hpp Update copyrights 2020-03-18 19:37:32 +01:00
xmitfd.hpp agent mac: Update license header 2021-06-10 23:27:27 +02:00
xmlhelper.hpp xmlhelper.hpp: support for various tinyxml2 versions 2020-03-19 07:35:36 +02:00