Commit 9b86c6a9 authored by Alexandre Julliard's avatar Alexandre Julliard

wmc: Load translations from mo files instead of po.

parent d6057e64
......@@ -63,7 +63,7 @@ filter: dummy
$(FLEX) $(LEXFLAGS) -o$@ $<
.mc.res:
$(WMC) -U -O res -P $(top_srcdir)/po -o $@ $<
$(WMC) -U -O res $(PORCFLAGS) -o $@ $<
.rc.res:
$(WRC) $(RCFLAGS) -o $@ $<
......
......@@ -88,6 +88,17 @@ void internal_error(const char *file, int line, const char *s, ...)
exit(3);
}
void fatal_perror( const char *msg, ... )
{
va_list valist;
va_start( valist, msg );
fprintf(stderr, "Error: ");
vfprintf( stderr, msg, valist );
perror( " " );
va_end( valist );
exit(2);
}
void error(const char *s, ...)
{
va_list ap;
......
......@@ -38,6 +38,7 @@ int mcy_error(const char *s, ...) __attribute__((format (printf, 1, 2)));
int xyyerror(const char *s, ...) __attribute__((format (printf, 1, 2)));
int mcy_warning(const char *s, ...) __attribute__((format (printf, 1, 2)));
void internal_error(const char *file, int line, const char *s, ...) __attribute__((format (printf, 3, 4)));
void fatal_perror( const char *msg, ... ) __attribute__((format (printf, 1, 2), noreturn));
void error(const char *s, ...) __attribute__((format (printf, 1, 2)));
void warning(const char *s, ...) __attribute__((format (printf, 1, 2)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment