From 9ce76f09417c31a8fc904b67624c0f3b397c21c0 Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 14 Oct 2006 15:04:10 +0000 Subject: - separate 'STATIC' (non-dyamic-allocation) from 'FIRMWARE' (no host drivers) - enhance openpcd in-firmware driver stubs - fix 15693 segfaults with cm5121 and openpcd (15693 is not working yet!) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1904 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_system.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/librfid/rfid_system.h b/include/librfid/rfid_system.h index 56441bb..9b07cf7 100644 --- a/include/librfid/rfid_system.h +++ b/include/librfid/rfid_system.h @@ -1,10 +1,14 @@ /* system / environment specific defines */ +/* build for openpcd firmware */ //#define LIBRFID_FIRMWARE +/* build without dynamic allocations */ +#define LIBRFID_STATIC + #ifdef __LIBRFID__ -#ifndef LIBRFID_FIRMWARE +#ifndef LIBRFID_STATIC /* If we're not doing a firmware compile, then we just use the regular * malloc()/free() functions as expected */ @@ -48,6 +52,6 @@ extern struct rfid_reader_handle rfid_rh; #define malloc_reader_handle(x) &rfid_rh #define free_reader_handle(x) EMPTY_STATEMENT -#endif /* LIBRFID_FIRMWARE */ +#endif /* LIBRFID_STATIC */ #endif /* __LIBRFID__ */ -- cgit v1.2.3