summaryrefslogtreecommitdiff
path: root/lib/totem_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/totem_internal.h')
-rw-r--r--lib/totem_internal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/totem_internal.h b/lib/totem_internal.h
new file mode 100644
index 0000000..9e8f255
--- /dev/null
+++ b/lib/totem_internal.h
@@ -0,0 +1,16 @@
+
+#include "config.h"
+
+/* replacement of asprintf & vasprintf */
+#ifndef HAVE_ASPRINTF
+#define HAVE_ASPRINTF
+#ifdef __GNUC__
+ #define asprintf(STRINGPP, FORMAT, ARGS...) totem_private_asprintf((STRINGPP), FORMAT, ##ARGS)
+#elif defined (_MSC_VER)
+ #define asprintf(STRINGPP, FORMATARGS) totem_private_asprintf((STRINGPP), FORMATARGS)
+#else
+ #define asprintf(STRINGPP, FORMAT, ...) totem_private_asprintf((STRINGPP), FORMAT, __VA_ARGS__)
+#endif
+int totem_private_asprintf(char **string, const char *format, ...);
+#endif
+