mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Add the printf prototype to generated C files.
This commit is contained in:
1 parent
bfbcae4365
commit
3b5e858fea
4 files changed
+10
-1
No files matched your search
@@ -261,6 +261,9 @@ puffs_flate_status puffs_flate_decoder_decode(puffs_flate_decoder* self,
|
||||
#if defined(__GNUC__)
|
||||
#define PUFFS_LIKELY(expr) (__builtin_expect(!!(expr), 1))
|
||||
#define PUFFS_UNLIKELY(expr) (__builtin_expect(!!(expr), 0))
|
||||
// Declare the printf prototype. The generated code shouldn't need this at all,
|
||||
// but it's useful for manual printf debugging.
|
||||
extern int printf(const char* __restrict __format, ...);
|
||||
#else
|
||||
#define PUFFS_LIKELY(expr) (expr)
|
||||
#define PUFFS_UNLIKELY(expr) (expr)
|
||||
|
||||
@@ -275,6 +275,9 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self,
|
||||
#if defined(__GNUC__)
|
||||
#define PUFFS_LIKELY(expr) (__builtin_expect(!!(expr), 1))
|
||||
#define PUFFS_UNLIKELY(expr) (__builtin_expect(!!(expr), 0))
|
||||
// Declare the printf prototype. The generated code shouldn't need this at all,
|
||||
// but it's useful for manual printf debugging.
|
||||
extern int printf(const char* __restrict __format, ...);
|
||||
#else
|
||||
#define PUFFS_LIKELY(expr) (expr)
|
||||
#define PUFFS_UNLIKELY(expr) (expr)
|
||||
|
||||
Reference in new issue
Block a user