mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core-crypto.c: fix htobe64 for Darwin (closes #2216)
This commit is contained in:
committed by
Sébastien Helleu
parent
5e5278b6a3
commit
33232f3f05
@@ -41,6 +41,7 @@
|
||||
- relay, xfer: fix letters with actions displayed on top of buffer
|
||||
- perl: fix crash when unloading Perl scripts with Perl 5.38 ([#2209](https://github.com/weechat/weechat/issues/2209), [#2213](https://github.com/weechat/weechat/issues/2213))
|
||||
- lua: fix compilation on Fedora with Lua < 5.2.0 ([#2173](https://github.com/weechat/weechat/issues/2173), [#2174](https://github.com/weechat/weechat/issues/2174))
|
||||
- core: fix build on Darwin ([#2216](https://github.com/weechat/weechat/issues/2216))
|
||||
- core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180))
|
||||
|
||||
## Version 4.4.4 (2024-11-30)
|
||||
|
||||
@@ -31,10 +31,13 @@
|
||||
#include <math.h>
|
||||
#include <gcrypt.h>
|
||||
|
||||
#ifdef __ANDROID__
|
||||
/* Bring in htobe64 */
|
||||
#ifdef __ANDROID__
|
||||
#define _BSD_SOURCE
|
||||
#include <endian.h>
|
||||
#elif defined(__APPLE__)
|
||||
#include <libkern/OSByteOrder.h>
|
||||
#define htobe64 OSSwapHostToBigInt64
|
||||
#endif
|
||||
|
||||
#include "weechat.h"
|
||||
|
||||
Reference in New Issue
Block a user