1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

core-crypto.c: fix htobe64 for Darwin (closes #2216)

This commit is contained in:
Sergey Fedorov
2024-12-01 20:09:14 +08:00
committed by Sébastien Helleu
parent 5e5278b6a3
commit 33232f3f05
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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"