]> granicus.if.org Git - graphviz/commitdiff
tools: remove some extern "C" marks
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 20 Oct 2021 04:22:34 +0000 (21:22 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 21 Oct 2021 01:41:45 +0000 (18:41 -0700)
These headers are only imported by C code, hence do not need this portability.

cmd/tools/colortbl.h
cmd/tools/convert.h

index eb4d0704251554494363f2747726a42d3d7b801c..2687e4a6b8de2edad87f14b90e0c3cbf02954bd3 100644 (file)
@@ -8,10 +8,6 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
     hsbcolor_t color_lib[] = {
        {"aliceblue", 147, 15, 255},
        {"antiquewhite", 24, 35, 250},
@@ -666,7 +662,3 @@ extern "C" {
        {"yellow4", 42, 255, 139},
        {"yellowgreen", 56, 192, 205},
     };
-
-#ifdef __cplusplus
-}
-#endif
index 15878ea29152b22a08c2ab767d5befa8f3e5cf53..93892912685782db1bb4e92e49c6d4d96485774a 100644 (file)
 
 #pragma once
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include "config.h"
 
 #include <stdio.h>
@@ -27,7 +23,3 @@ extern "C" {
 #ifdef HAVE_EXPAT
     extern Agraph_t *gxl_to_gv(FILE *);
 #endif
-
-#ifdef __cplusplus
-}
-#endif