Skip to content

Commit 0d668f6

Browse files
committed
Adjust AEGIS code
The WASM specific defines caused compile time errors.
1 parent da982b9 commit 0d668f6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/aegis/common/common.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@
88
#ifndef AEGIS_COMMON_H
99
#define AEGIS_COMMON_H
1010

11-
#if defined(__wasm__) && !defined(__wasi__)
12-
static int errno;
13-
#define memcpy(A, B, C) __builtin_memcpy((A), (B), (C))
14-
#define memset(A, B, C) __builtin_memset((A), (B), (C))
15-
#else
1611
#include <errno.h>
1712
#include <stddef.h>
1813
#include <stdint.h>
1914
#include <string.h>
20-
#endif
2115

2216
#include "../include/aegis.h"
2317
#include "cpu.h"

0 commit comments

Comments
 (0)