Fixed output on windows

This commit is contained in:
Snaipe 2015-08-04 15:02:04 +02:00
parent ea5a074ff4
commit 5608711a00
2 changed files with 6 additions and 2 deletions

View file

@ -29,7 +29,11 @@
#include "criterion/options.h"
#include "i18n.h"
#define LOG_FORMAT "[%1$s%2$s%3$s] %4$s"
#ifdef ENABLE_NLS
# define LOG_FORMAT "[%1$s%2$s%3$s] %4$s"
#else
# define LOG_FORMAT "[%s%s%s] %s"
#endif
const struct criterion_prefix_data g_criterion_logging_prefixes[] = {
[CRITERION_LOGGING_PREFIX_DASHES] = { "----", CRIT_FG_BLUE },

View file

@ -47,7 +47,7 @@ typedef const char *const msg_t;
static msg_t msg_pre_all = "Criterion v%s\n";
static msg_t msg_desc = " %s\n";
#if ENABLE_NLS
#ifdef ENABLE_NLS
static msg_t msg_pre_init = "%1$s::%2$s\n";
static msg_t msg_post_test_timed = "%1$s::%2$s: (%3$3.2fs)\n";
static msg_t msg_post_test = "%1$s::%2$s\n";