Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
bf3f7689
Commit
bf3f7689
authored
Feb 08, 2011
by
Joe Poirier
Committed by
Russ Cox
Feb 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows: replace remaining __MINGW32__ instances with _WIN32
R=rsc, brainman CC=golang-dev
https://golang.org/cl/4146041
parent
69334ee6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/libc.h
include/libc.h
+1
-1
include/u.h
include/u.h
+3
-3
No files found.
include/libc.h
View file @
bf3f7689
...
...
@@ -291,7 +291,7 @@ extern char* getgoarch(void);
extern
char
*
getgoroot
(
void
);
extern
char
*
getgoversion
(
void
);
#ifdef _
_MINGW32__
#ifdef _
WIN32
struct
timespec
{
int
tv_sec
;
long
tv_nsec
;
...
...
include/u.h
View file @
bf3f7689
...
...
@@ -78,7 +78,7 @@ extern "C" {
#define _NEEDUINT 1
#define _NEEDULONG 1
#ifdef _
_MINGW32__
#ifdef _
WIN32
typedef
jmp_buf
sigjmp_buf
;
#endif
typedef
long
p9jmp_buf
[
sizeof
(
sigjmp_buf
)
/
sizeof
(
long
)];
...
...
@@ -139,7 +139,7 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# undef _NEEDUSHORT
# undef _NEEDUINT
# undef _NEEDULONG
#elif defined(_
_MINGW32__
)
#elif defined(_
WIN32
)
#else
/* No idea what system this is -- try some defaults */
# include <pthread.h>
...
...
@@ -208,7 +208,7 @@ typedef u64int uint64;
*/
#if defined(__GNUC__)
# undef strcmp
/* causes way too many warnings */
# if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__) && !defined(_
_MINGW32__
))
# if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__) && !defined(_
WIN32
))
# undef AUTOLIB
# define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak));
# undef AUTOFRAMEWORK
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment