Skip to content

Commit

Permalink
fix: building on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Aug 26, 2020
1 parent b3dd4f0 commit 951ba10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/oaes_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ static const char _NR[] = {
#include <stddef.h>
#include <time.h>
#include <sys/timeb.h>
#include <malloc.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#ifdef WIN32
#include <malloc.h>
#include <process.h>
#else
#include <sys/types.h>
Expand Down
9 changes: 8 additions & 1 deletion scryptjane/scrypt-jane-portable.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,12 @@ scrypt_ensure_zero(void *p, size_t len) {
#endif
}

#ifdef __APPLE__
static size_t
detect_cpu(void) {
size_t cpu_flags = 0;
return cpu_flags;
}
#else
#include "scrypt-jane-portable-x86.h"

#endif

0 comments on commit 951ba10

Please # to comment.