More fixes.

This commit is contained in:
NIIBE Yutaka
2017-09-28 15:36:59 +09:00
parent 62f27f319c
commit 86715dd4fe
2 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ PROJECT = gnuk
CHOPSTX = ../chopstx
CSRC = main.c call-rsa.c mcu-stm32f103.c \
CSRC = main.c call-rsa.c \
usb_desc.c usb_ctrl.c \
usb-ccid.c openpgp.c ac.c openpgp-do.c flash.c \
bn.c mod.c \
@@ -43,6 +43,10 @@ ifeq ($(ENABLE_PINPAD),dnd)
CSRC += usb-msc.c
endif
ifeq ($(CHIP),stm32f103)
CSRC += mcu-stm32f103.c
endif
###################################
CC = $(CROSS)gcc
LD = $(CROSS)gcc

View File

@@ -7,9 +7,7 @@
* For GNU/Linux emulation, we can use C library.
*/
typedef unsigned long int size_t;
#include <stddef.h> /* NULL */
#include <stddef.h> /* NULL and size_t */
#define malloc(size) gnuk_malloc (size)
#define free(p) gnuk_free (p)