diff options
author | konablend <kona8lend@gmail.com> | 2009-06-25 03:36:26 +0000 |
---|---|---|
committer | konablend <kona8lend@gmail.com> | 2009-06-25 03:36:26 +0000 |
commit | eef252057e08aeffc4a8b43d6eba838012debc28 (patch) | |
tree | 711122c860cc6fa878a0681046da0e0f20ed7ed4 /libhb/common.h | |
parent | 1f5936650ac23cec965a8934b36a21b4f4bcfa16 (diff) |
Format cleanup.
- fixed ports.c to use a more portable method of getting integral pthread_t representation; resolves mingw crash.
- added GCC attribute to generate compiler warnings for invalid usage of hb_log, hb_deep_log and hb_errror;
see new macro HB_WPRINTF(s,v) in common.h.
- fixed various invalid usage of above functions on osx i386/x86_64, and mingw.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2618 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r-- | libhb/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h index 808714ee7..fb1f21198 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -18,6 +18,12 @@ #include <sys/stat.h> #include <dirent.h> +#if defined( __GNUC__ ) && !(defined( _WIN32 ) || defined( __MINGW32__ )) +# define HB_WPRINTF(s,v) __attribute__((format(printf,s,v))) +#else +# define HB_WPRINTF(s,v) +#endif + #if defined( SYS_MINGW ) # define fseek fseeko64 # define ftell ftello64 |