From: lisu Date: Tue, 16 Aug 2011 10:29:58 +0000 (+0000) Subject: - don't declare asprintf again X-Git-Tag: auto/th/fceultra-2_1_5-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffceultra.git;a=commitdiff_plain;h=3b60063c1b9bc8e08ae411376c48925b838ff8fa - don't declare asprintf again Changed files: fceultra-build.patch -> 1.1 --- diff --git a/fceultra-build.patch b/fceultra-build.patch new file mode 100644 index 0000000..2a0e2c2 --- /dev/null +++ b/fceultra-build.patch @@ -0,0 +1,24 @@ +--- fceu2.1.5/src/file.cpp~ 2010-09-19 02:05:09.000000000 +0200 ++++ fceu2.1.5/src/file.cpp 2011-08-16 12:20:00.605072049 +0200 +@@ -460,21 +460,6 @@ + } + } + +- #ifndef HAVE_ASPRINTF +- static int asprintf(char **strp, const char *fmt, ...) +- { +- va_list ap; +- int ret; +- +- va_start(ap,fmt); +- if(!(*strp=(char*)FCEU_dmalloc(2048))) //mbg merge 7/17/06 cast to char* +- return(0); +- ret=vsnprintf(*strp,2048,fmt,ap); +- va_end(ap); +- return(ret); +- } +- #endif +- + std::string FCEU_GetPath(int type) + { + char ret[FILENAME_MAX];