Browse Source

do not define variables in headers!

Sergey Alirzaev 5 years ago
parent
commit
126dbc8e72
1 changed files with 1 additions and 2 deletions
  1. 1 2
      thirdparty/lwip/src/include/lwip/errno.h

+ 1 - 2
thirdparty/lwip/src/include/lwip/errno.h

@@ -174,8 +174,7 @@ extern "C" {
 #define  EMEDIUMTYPE    124  /* Wrong medium type */
 #define  EMEDIUMTYPE    124  /* Wrong medium type */
 
 
 #ifndef errno
 #ifndef errno
-//extern int errno;
-static int errno;
+extern int errno;
 #endif
 #endif
 
 
 #else /* LWIP_PROVIDE_ERRNO */
 #else /* LWIP_PROVIDE_ERRNO */