Text library compiles on OS X

This commit is contained in:
Víctor Román Archidona 2014-07-23 14:50:51 +02:00
parent 6efe4383c2
commit 7b821afac0
3 changed files with 22 additions and 4 deletions

18
dlls/src/text/build.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
CCOPTS="-I. -I/usr/local/include -I../include"
FILES="
text
"
OBJECTS=""
for FILE in $FILES; do
gcc -c $FILE.c $CCOPTS -o $FILE.o
OBJECTS+="$FILE.o "
done
gcc $OBJECTS -shared -o ../../bin/text.so -L/usr/local/lib -lSDL
#rm $OBJECTS

View file

@ -222,7 +222,7 @@ int eDiv_WriteInt(FUNCTION_PARAMS)
fprintf( fichero , "valor: %i\n" , global("fps") ) ;
fclose(fichero) ;
itoa( fp->mem[ textos[i].offset_var ] , texto2 , 10 ) ;
sprintf(texto2, "%d", fp->mem[ textos[i].offset_var ]);
texto = texto2 ;
@ -325,7 +325,7 @@ void frame(FUNCTION_PARAMS)
{
SDL_FreeSurface( textos[i].imagen ) ;
itoa( fp->mem[ textos[i].offset_var ] , texto2 , 10 ) ;
sprintf(texto2, "%d", fp->mem[ textos[i].offset_var ]);
texto = texto2 ;
/* Calculamos el ancho del fichero */

View file

@ -1,7 +1,7 @@
#ifndef __EDIV_TEXT_H_
#define __EDIV_TEXT_H_
int eDiv_LoadFnt(FUNCTION_PARMAS);
int eDiv_LoadFnt(FUNCTION_PARAMS);
int eDiv_Write(FUNCTION_PARAMS);
int eDiv_WriteInt(FUNCTION_PARAMS);
int eDiv_MoveText(FUNCTION_PARAMS);