#include <stdarg.h> /* va_list for BSD */
#ifdef __APPLE__
-#include <xlocale.h>
-#else
-#include <locale.h>
+# include <xlocale.h>
+#elif defined(HAVE_LOCALE_H)
+# include <locale.h>
#endif
#include <errno.h> /* errno */
return p_ctx;
}
-void msg_StackDestroy (void *data)
-{
- msg_context_t *p_ctx = data;
-
- free (p_ctx->psz_message);
- free (p_ctx);
-}
-
void msg_StackSet( int i_code, const char *psz_message, ... )
{
va_list ap;