]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary errno declaration
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 1 Jul 2021 00:24:30 +0000 (17:24 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 5 Jul 2021 18:47:30 +0000 (11:47 -0700)
The errno variable/macro is part of ISO C.

lib/sfio/sfhdr.h

index 2d8809049e90c9ba8bf7b2da70101fdeeb35ade1..c024837149dd3d2cc150815b6a8cc5afde66e19c 100644 (file)
@@ -644,10 +644,6 @@ extern "C" {
     extern char *_sfcvt(void *, int, int *, int *, int);
     extern char **_sfgetpath(char *);
 
-#ifndef errno
-    extern int errno;
-#endif
-
 #ifdef _WIN32
 #undef SF_ERROR
 #include <io.h>