]> granicus.if.org Git - graphviz/commitdiff
prune: remove 'extern "C"' from generic list functions
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Nov 2022 15:40:51 +0000 (08:40 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 10 Nov 2022 04:44:56 +0000 (20:44 -0800)
This application is entirely C. There is no need to explicitly specify C linkage
because it is the default.

contrib/prune/generic_list.h

index e7fd2fa840d8064433aa96b201bb23f04971eded..0e34afccb0a69e094af3db39030abceeb4f2d2b7 100644 (file)
@@ -8,11 +8,6 @@
  * Contributors: Details at http://www.graphviz.org/
  *************************************************************************/
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
 #ifndef GENERIC_LIST_H
 #define GENERIC_LIST_H
 
@@ -30,7 +25,3 @@ extern "C" {
     extern void free_generic_list(generic_list_t * list);
 
 #endif                         /* GENERIC_LIST_H */
-
-#ifdef __cplusplus
-}
-#endif