Page 1 of 1

Can't compile

Posted: 2008-11-10T00:38:44-07:00
by jpiquemal
Hello
I can't compile anymore IM, i get lots of errors:
__FUNCTION__ :undeclared identifier

(VC6)

Re: Can't compile

Posted: 2008-11-15T02:38:20-07:00
by jpiquemal
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)