diff options
author | Eion Robb <eion@robbmob.com> | 2015-10-22 11:32:27 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2015-10-22 11:32:27 +0300 |
commit | a8db9919da2f5a2fd88cf6d12a0d0ab4ad0ef526 (patch) | |
tree | d6931b899a265dc5a7595a16f6f2d109848266d0 /tools.h | |
parent | 5b725d288f59ada3f8905a73182fe57ae8c22986 (diff) |
Allow compiling on Windows
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -27,6 +27,7 @@ #include <string.h> //#include "tgl.h" #include "crypto/err.h" +#include "crypto/rand.h" struct tgl_allocator { void *(*alloc)(size_t size); @@ -99,8 +100,8 @@ void tgl_exists_release (void *ptr, int size); void *tgl_memdup (const void *s, size_t n); -int tgl_snprintf (char *buf, int len, const char *format, ...) __attribute__ ((format (printf, 3, 4))); -int tgl_asprintf (char **res, const char *format, ...) __attribute__ ((format (printf, 2, 3))); +int tgl_snprintf (char *buf, int len, const char *format, ...) __attribute__ ((format (__printf__, 3, 4))); +int tgl_asprintf (char **res, const char *format, ...) __attribute__ ((format (__printf__, 2, 3))); void tglt_secure_random (void *s, int l); void tgl_my_clock_gettime (int clock_id, struct timespec *T); |