Fri, 06 Sep 2013 13:28:05 +0200
windows specifics
ucx/logging.c | file | annotate | diff | comparison | revisions | |
windows.mk | file | annotate | diff | comparison | revisions |
--- a/ucx/logging.c Fri Sep 06 13:20:20 2013 +0200 +++ b/ucx/logging.c Fri Sep 06 13:28:05 2013 +0200 @@ -87,7 +87,11 @@ n = strlen(file); memcpy(msg+k, file, n); k += n; +#ifdef _WIN32 + k += _snprintf(msg+k, UCX_LOGGER_MSGMAX-k, ":%d ", line); +#else k += snprintf(msg+k, UCX_LOGGER_MSGMAX-k, ":%d ", line); +#endif /* _WIN32 */ } msg[k++] = '-'; msg[k++] = ' ';
--- a/windows.mk Fri Sep 06 13:20:20 2013 +0200 +++ b/windows.mk Fri Sep 06 13:28:05 2013 +0200 @@ -29,8 +29,6 @@ CC = cl LD = link AR = lib -RM = del -MKDIR = mkdir CFLAGS = -c -TP -I../msc COFLAGS = -Fo @@ -38,8 +36,6 @@ LOFLAGS = -OUT: ARFLAGS = AOFLAGS = -OUT: -RMFLAGS = /F /S /Q -MKDIRFLAGS = OBJ_EXT = .obj LIB_EXT = .lib