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:
committed by
Sébastien Helleu
parent
5e5278b6a3
commit
33232f3f05
@@ -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