]> granicus.if.org Git - graphviz/commitdiff
fix: use of size_t in agxbuf.h with no definition
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Aug 2020 21:04:28 +0000 (14:04 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 20 Aug 2020 14:40:31 +0000 (07:40 -0700)
This worked so far because files #including this always included something else
that brought in stddef.h prior to #including agxbuf.h

lib/cgraph/agxbuf.h

index 6a7bada96e3bf633bc42b12baa6cd0c4e1b6207c..deb2e8e9fdf85b337b924e29537337e371670450 100644 (file)
@@ -18,6 +18,8 @@ extern "C" {
 #ifndef         AGXBUF_H
 #define         AGXBUF_H
 
+#include <stddef.h>
+
 #ifdef _WIN32
 #   ifdef EXPORT_AGXBUF
 #       define AGXBUF_API __declspec(dllexport)