Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2015-10-22 11:32:27 +0300
committerEion Robb <eion@robbmob.com>2015-10-22 11:32:27 +0300
commita8db9919da2f5a2fd88cf6d12a0d0ab4ad0ef526 (patch)
treed6931b899a265dc5a7595a16f6f2d109848266d0 /tools.h
parent5b725d288f59ada3f8905a73182fe57ae8c22986 (diff)
Allow compiling on Windows
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools.h b/tools.h
index fe9aeb0..0934f81 100644
--- a/tools.h
+++ b/tools.h
@@ -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);