__func__ define for msvc since its not c99 compat

This commit is contained in:
2012-01-01 10:27:53 +00:00
parent 5543928aa7
commit 9b45d8acad

View File

@@ -43,9 +43,14 @@
#define RNA_VERSION_DATE "FIXME-RNA_VERSION_DATE"
#ifdef _WIN32
#ifndef snprintf
#define snprintf _snprintf
# ifndef snprintf
# define snprintf _snprintf
# endif
#endif
/* so we can use __func__ everywhere */
#if defined(_MSC_VER)
# define __func__ __FUNCTION__
#endif
/* Replace if different */