summaryrefslogtreecommitdiffstats
path: root/src/lilv_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lilv_internal.h')
-rw-r--r--src/lilv_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h
index cedc33e..15d2716 100644
--- a/src/lilv_internal.h
+++ b/src/lilv_internal.h
@@ -29,13 +29,16 @@ extern "C" {
#ifdef _WIN32
# include <windows.h>
# include <direct.h>
+# include <stdio.h>
# define dlopen(path, flags) LoadLibrary(path)
# define dlclose(lib) FreeLibrary((HMODULE)lib)
# define unlink(path) _unlink(path)
# define rmdir(path) _rmdir(path)
# ifdef _MSC_VER
# define __func__ __FUNCTION__
-# define snprintf _snprintf
+# ifndef snprintf
+# define snprintf _snprintf
+# endif
# endif
#ifndef INFINITY
# define INFINITY DBL_MAX + DBL_MAX