Mercurial > audlegacy
comparison src/audacious/strings.c @ 4789:0b44f32ea243
It is idiotic to exclude that printf out of the #ifdefs if it uses
variables defined only inside the #ifdef... Fixed.
author | Jonathan Schleifer <js-audacious@webkeks.org> |
---|---|
date | Thu, 02 Oct 2008 23:20:04 +0200 |
parents | 829c30fc87ba |
children |
comparison
equal
deleted
inserted
replaced
4788:7da84f662ce2 | 4789:0b44f32ea243 |
---|---|
325 const gint nsymmax = 50; | 325 const gint nsymmax = 50; |
326 void *addrbuf[nsymmax]; | 326 void *addrbuf[nsymmax]; |
327 gchar **symbols; | 327 gchar **symbols; |
328 nsymbols = backtrace(addrbuf, nsymmax); | 328 nsymbols = backtrace(addrbuf, nsymmax); |
329 symbols = backtrace_symbols(addrbuf, nsymbols); | 329 symbols = backtrace_symbols(addrbuf, nsymbols); |
330 #endif | |
331 | 330 |
332 fprintf(stderr, "WARNING! String '%s' was not UTF-8! Backtrace (%d):\n", str, nsymbols); | 331 fprintf(stderr, "WARNING! String '%s' was not UTF-8! Backtrace (%d):\n", str, nsymbols); |
333 | 332 |
334 #ifdef HAVE_EXECINFO | |
335 for (i = 0; i < nsymbols; i++) | 333 for (i = 0; i < nsymbols; i++) |
336 fprintf(stderr, "#%d > %s\n", i, symbols[i]); | 334 fprintf(stderr, "#%d > %s\n", i, symbols[i]); |
337 | 335 |
338 free(symbols); | 336 free(symbols); |
339 #endif | 337 #endif |