Skip to content

Commit

Permalink
vs2013 errno defined twice
Browse files Browse the repository at this point in the history
warning C4273: '_errno' : inconsistent dll linkage
...\12.0\vc\include\errno.h(31) : see previous definition of '_errno'

If _CRT_ERRNO_DEFINED is defined then do not define it again.
  • Loading branch information
bmateusz committed Feb 23, 2015
1 parent 92b715e commit 423fe46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fnmatch/fnmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Library General Public License for more details. */
#include <errno.h>
#include <fnmatch.h>

#if !defined(__GNU_LIBRARY__) && !defined(STDC_HEADERS)
#if !defined(__GNU_LIBRARY__) \
&& !defined(STDC_HEADERS) \
&& !defined(_CRT_ERRNO_DEFINED)
extern int errno;
#endif

Expand Down

0 comments on commit 423fe46

Please sign in to comment.