small changes for linking

This commit is contained in:
Marenz 2010-09-01 15:47:26 +02:00
parent f10e1801ad
commit 49939114ab
4 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
CC=clang
CC=cc
dietlib:
/opt/diet/bin/diet ${CC} -c -Os parser.c -o libpsyc.o -DDEBUG

View File

@ -106,7 +106,7 @@ inline int PSYC_parseHeader(
* real length of the packet and thus
* searches for the terminator.
*/
int PSYC_parseOpenBody(
extern int PSYC_parseOpenBody(
unsigned int* cursor,
const uint8_t * data, unsigned int dlength,
const uint8_t** name, unsigned int *nlength,

View File

@ -36,7 +36,7 @@
* <0 on a parsing error.
* This invalidates all but the cursor
* out paramater. */
int PSYC_parseHeader(
extern int PSYC_parseHeader(
unsigned int* cursor,
const uint8_t * data, unsigned int dlength,
const uint8_t** name, unsigned int *nlength,
@ -110,7 +110,7 @@ int PSYC_parseClosedBody(
* real length of the packet and thus
* searches for the terminator.
*/
int PSYC_parseOpenBody(
extern int PSYC_parseOpenBody(
unsigned int* cursor,
const uint8_t * data, unsigned int dlength,
const uint8_t** name, unsigned int *nlength,

View File

@ -1,3 +1,3 @@
CFLAGS=-I.. -DDEBUG -lpsyc
CFLAGS=-L.. -I.. -DDEBUG -lpsyc
it: testParser