Hello
I can't compile anymore IM, i get lots of errors:
__FUNCTION__ :undeclared identifier
(VC6)
Can't compile
Re: Can't compile
If somebody has the same problem:
to fix i modified the file log.h.
[color=#BF0000]before:[/color]
#if !defined(GetMagickModule)
# define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__
#endif
[color=#BF0000]after:[/color]
#if !defined(GetUnadornedModuleName)
# if (((defined(__cplusplus) || defined(c_plusplus)) && defined(HAS_CPP__func__)) || \
(!(defined(__cplusplus) || defined(c_plusplus)) && defined(HAS_C__func__)))
# define GetUnadornedModuleName() (__func__)
# elif defined(_VISUALC_) && defined(__FUNCTION__)
# define GetUnadornedModuleName() (__FUNCTION__)
# else
# define GetUnadornedModuleName() ("unknown")
# endif
#endif
#if !defined(GetMagickModule)
# define GetMagickModule() \
__FILE__,GetUnadornedModuleName(),(unsigned long) __LINE__
#endif
(it comes from the previous IM version)
to fix i modified the file log.h.
[color=#BF0000]before:[/color]
#if !defined(GetMagickModule)
# define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__
#endif
[color=#BF0000]after:[/color]
#if !defined(GetUnadornedModuleName)
# if (((defined(__cplusplus) || defined(c_plusplus)) && defined(HAS_CPP__func__)) || \
(!(defined(__cplusplus) || defined(c_plusplus)) && defined(HAS_C__func__)))
# define GetUnadornedModuleName() (__func__)
# elif defined(_VISUALC_) && defined(__FUNCTION__)
# define GetUnadornedModuleName() (__FUNCTION__)
# else
# define GetUnadornedModuleName() ("unknown")
# endif
#endif
#if !defined(GetMagickModule)
# define GetMagickModule() \
__FILE__,GetUnadornedModuleName(),(unsigned long) __LINE__
#endif
(it comes from the previous IM version)