Skip to content

Commit

Permalink
consolidate compiler pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
twall committed Apr 25, 2013
1 parent 6b552cc commit 5db3b42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions native/dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
*/

#if defined(_WIN32)
#ifdef _MSC_VER
#pragma warning( disable : 4201 ) /* nameless struct/union (jni_md.h) */
#endif
#ifndef UNICODE
#define UNICODE
#endif
Expand Down
1 change: 1 addition & 0 deletions native/dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#pragma warning( disable : 4055 ) /* cast data pointer to function pointer */
#pragma warning( disable : 4204 ) /* structure initializer */
#pragma warning( disable : 4710 ) /* swprintf not inlined */
#pragma warning( disable : 4201 ) /* nameless struct/union (jni_md.h) */
#else
#include <malloc.h>
#endif /* _MSC_VER */
Expand Down

0 comments on commit 5db3b42

Please sign in to comment.