From: John Ellson Date: Mon, 6 Apr 2020 15:01:32 +0000 (-0400) Subject: add '#ifdef __cplusplus' wrapper to sgd.h to try to fix windows build error X-Git-Tag: stable_release_2.44.0~12^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11540551b398d4fe242cbad2031b03dee73e2af0;p=graphviz add '#ifdef __cplusplus' wrapper to sgd.h to try to fix windows build error --- diff --git a/lib/neatogen/sgd.c b/lib/neatogen/sgd.c index 941ba6b7c..4d809c56b 100644 --- a/lib/neatogen/sgd.c +++ b/lib/neatogen/sgd.c @@ -1,3 +1,4 @@ +#include "neato.h" #include "sgd.h" #include "dijkstra.h" #include "randomkit.h" diff --git a/lib/neatogen/sgd.h b/lib/neatogen/sgd.h index 9b2b12f07..fcad8d091 100644 --- a/lib/neatogen/sgd.h +++ b/lib/neatogen/sgd.h @@ -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