aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHector Chu <hectorchu@gmail.com>2011-08-29 16:17:08 +1000
committerAlex Brainman <alex.brainman@gmail.com>2011-08-29 16:17:08 +1000
commit1d6ae53cc2c71ba189c0c2b06a1cd7db18081933 (patch)
tree4f7e15691976ceebf4bb4950e92ec97d118af680
parent361c5ace0597d57480837f4c610c47e7bf20bd18 (diff)
downloadgo-1d6ae53cc2c71ba189c0c2b06a1cd7db18081933.tar.gz
go-1d6ae53cc2c71ba189c0c2b06a1cd7db18081933.zip
fix windows/amd64 build with newest mingw-w64
R=alex.brainman, golang-dev CC=golang-dev https://golang.org/cl/4968048
-rw-r--r--include/libc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h
index 03e247ff67..0817d77b81 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)