diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-10 20:36:44 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-10 20:36:44 +0100 |
commit | 6ad1ef901b7a07bc8b070e64c4bf5e53f708cb7b (patch) | |
tree | 91ba47496c1be5fb3ef895f254fad5af41705a93 /src | |
parent | 4d32ec5ab668d02c5b3dee83f0d8275b70e9014d (diff) | |
download | wolfbones-6ad1ef901b7a07bc8b070e64c4bf5e53f708cb7b.tar.gz wolfbones-6ad1ef901b7a07bc8b070e64c4bf5e53f708cb7b.tar.bz2 |
fixed snprintf on native Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.W32 | 1 | ||||
-rw-r--r-- | src/port/snprintf.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile.W32 b/src/Makefile.W32 index 2aeb76b..57c7805 100644 --- a/src/Makefile.W32 +++ b/src/Makefile.W32 @@ -14,6 +14,7 @@ LIBRARIES = \ PORT_OBJS = \ port\string.obj \ + port\stdio.obj \ port\time.obj COMMON_OBJS = \ diff --git a/src/port/snprintf.c b/src/port/snprintf.c index f5731b0..8359cb5 100644 --- a/src/port/snprintf.c +++ b/src/port/snprintf.c @@ -937,10 +937,12 @@ out: else if (size > 0) str[size - 1] = '\0'; +/* That is not conforming to ISO C99! if (overflow || len >= INT_MAX) { errno = overflow ? EOVERFLOW : ERANGE; return -1; } +*/ return (int)len; } |