diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-10-14 15:04:10 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-10-14 15:04:10 +0000 |
commit | 9ce76f09417c31a8fc904b67624c0f3b397c21c0 (patch) | |
tree | 16ba04843e3797cb6018cc02d670566eb5535694 /include | |
parent | e404cccecd20a2418c2429cd182c18218e54bd28 (diff) |
- 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
Diffstat (limited to 'include')
-rw-r--r-- | include/librfid/rfid_system.h | 8 |
1 files changed, 6 insertions, 2 deletions
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__ */ |