From: Juergen K. <jk...@us...> - 2002-12-17 16:48:37
|
Update of /cvsroot/xine/xine-ui/src/xitk/xine-toolkit In directory sc8-pr-cvs1:/tmp/cvs-serv9153 Modified Files: _xitk.h Log Message: Should use fprintf to print warnings (not fflush :-) Index: _xitk.h =================================================================== RCS file: /cvsroot/xine/xine-ui/src/xitk/xine-toolkit/_xitk.h,v retrieving revision 1.59 retrieving revision 1.60 diff -u -r1.59 -r1.60 --- _xitk.h 10 Dec 2002 22:33:21 -0000 1.59 +++ _xitk.h 17 Dec 2002 16:48:34 -0000 1.60 @@ -91,7 +91,7 @@ #define XITK_WARNING(FMT, ARGS...) do { fprintf(stderr, "xiTK WARNING(%s:%d): ", __FUNCTION__, __LINE__); fprintf(stderr, FMT, ##ARGS); } while(0) #else /* C99 version: */ #define XITK_DIE(...) do { fprintf(stderr, "xiTK DIE: "__VA_ARGS__); exit(-1); } while(0) -#define XITK_WARNING(...) do { fprintf(stderr, "xiTK WARNING(%s:%d): ", __FUNCTION__, __LINE__); fflush(stderr, __VA_ARGS__); } while(0) +#define XITK_WARNING(...) do { fprintf(stderr, "xiTK WARNING(%s:%d): ", __FUNCTION__, __LINE__); fprintf(stderr, __VA_ARGS__); } while(0) #endif #define XITK_FREE(X) do { if((X)) { free((X)); (X) = NULL; } } while(0) |