summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHector Chu <hectorchu@gmail.com>2011-08-29 16:17:08 +1000
committerHector Chu <hectorchu@gmail.com>2011-08-29 16:17:08 +1000
commit80f793d5555d2a0c9c963ab58616756c101d7a01 (patch)
tree2421ede2af38a9cf27ebc71fdaeb6ca0a2fad1d2 /include
parentfdc01f39e524b6b6cbfd230cfcba3fa767e53a07 (diff)
downloadgo-80f793d5555d2a0c9c963ab58616756c101d7a01.tar.gz
fix windows/amd64 build with newest mingw-w64
R=alex.brainman, golang-dev CC=golang-dev http://codereview.appspot.com/4968048 Committer: Alex Brainman <alex.brainman@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h
index 03e247ff6..0817d77b8 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -112,6 +112,7 @@ extern void sysfatal(char*, ...);
#define notejmp p9notejmp
#define jmp_buf p9jmp_buf
#define pow10 p9pow10
+#undef strtod
#define strtod fmtstrtod
#define charstod fmtcharstod
#endif
@@ -306,6 +307,7 @@ extern int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
extern int fork(void);
extern int pread(int fd, void *buf, int n, int off);
extern int pwrite(int fd, void *buf, int n, int off);
+#undef lseek
#define lseek(fd, n, base) _lseeki64(fd, n, base)
#define mkdir(path, perm) mkdir(path)
#define pipe(fd) _pipe(fd, 512, O_BINARY)