version 1.33 | | version 1.34 |
---|
| | |
/* | | /* |
* static char *rcsid_porting_c = | | * static char *rcsid_porting_c = |
* "$Id: porting.c,v 1.33 2006/05/21 12:44:35 akirschbaum Exp $"; | | * "$Id: porting.c,v 1.34 2006/06/05 06:28:56 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2002 Mark Wedel & Crossfire Development Team | | Copyright (C) 2006 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
void save_long_long(char *buf, char *name, sint64 n) { | | void save_long_long(char *buf, char *name, sint64 n) { |
char buf2[MAX_BUF]; | | char buf2[MAX_BUF]; |
| | |
#ifndef WIN32 | | sprintf(buf2,"%s %" FMT64 "\n", name, n); |
sprintf(buf2,"%s %lld\n", name, n); | | |
#else | | |
sprintf(buf2,"%s %I64d\n", name, n); | | |
#endif | | |
strcat(buf,buf2); | | strcat(buf,buf2); |
} | | } |
| | |