]> granicus.if.org Git - graphviz/commitdiff
add '#ifdef __cplusplus' wrapper to sgd.h to try to fix windows build error
authorJohn Ellson <ellson@research.att.com>
Mon, 6 Apr 2020 15:01:32 +0000 (11:01 -0400)
committerJohn Ellson <ellson@research.att.com>
Mon, 6 Apr 2020 15:01:32 +0000 (11:01 -0400)
lib/neatogen/sgd.c
lib/neatogen/sgd.h

index 941ba6b7ccf2a1a6aa5bf17e151d27de17fd8c78..4d809c56b3f55a8fc9d8df72038376f927e5ff70 100644 (file)
@@ -1,3 +1,4 @@
+#include "neato.h"
 #include "sgd.h"
 #include "dijkstra.h"
 #include "randomkit.h"
index 9b2b12f0799ad4e43d9df94f267d269e63a61dfc..fcad8d091aa1799706496cf18929d7e7db16eb44 100644 (file)
@@ -1,8 +1,10 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef SGD_H
 #define SGD_H
 
-#include "neato.h"
-
 typedef struct term_sgd {
     int i, j;
     float d, w;
@@ -20,3 +22,7 @@ typedef struct graph_sgd {
 extern void sgd(graph_t *, int);
 
 #endif /* SGD_H */
+
+#ifdef __cplusplus
+}
+#endif