Browse Source

Set memalign implementation based on architecture

Bernhard Fröhlich 4 years ago
parent
commit
e8dc49092e
2 changed files with 2 additions and 2 deletions
  1. 0
    2
      AESNI.c
  2. 2
    0
      Makefile

+ 0
- 2
AESNI.c View File

@@ -22,8 +22,6 @@
22 22
  * ===================================================================
23 23
  */
24 24
 
25
-#define HAVE_POSIX_MEMALIGN
26
-
27 25
 #include <wmmintrin.h>
28 26
 #include <stdlib.h>
29 27
 #include <string.h>

+ 2
- 0
Makefile View File

@@ -18,8 +18,10 @@ CFLAGS	+= -O2
18 18
 
19 19
 # we need to link to libc/msvcrt
20 20
 ifeq ($(OS),Windows_NT)
21
+CFLAGS += -DHAVE__ALIGNED_MALLOC
21 22
 LDFLAGS	+= -lmsvcrt
22 23
 else
24
+CFLAGS += -DHAVE_POSIX_MEMALIGN
23 25
 LDFLAGS	+= -lc
24 26
 endif
25 27
 

Loading…
Cancel
Save