Skip to content

Commit

Permalink
Declare DWORD, {Get,Set}LastError only on cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
graywolf committed May 30, 2018
1 parent 4ba55c5 commit 447bdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ffi_c/LastError.c
Expand Up @@ -49,7 +49,7 @@
# define USE_PTHREAD_LOCAL
#endif

#if defined(_WIN32) || defined(__CYGWIN__)
#if defined(__CYGWIN__)
typedef uint32_t DWORD;
DWORD __stdcall GetLastError(void);
void __stdcall SetLastError(DWORD);
Expand Down

0 comments on commit 447bdca

Please sign in to comment.