]> granicus.if.org Git - graphviz/commit
lib/gvpr: use GVDLL instead of _WIN32 to control gprDisc init in compile.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 2 Jan 2022 15:02:47 +0000 (16:02 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 08:44:20 +0000 (09:44 +0100)
commit086d5bf757f87b276c9632e7529d49e3e2e36b79
tree335a687654c31133f93560316695530b24ed0819
parentf89c6352f5364b016b0d49ef8fbe1a223d072b27
lib/gvpr: use GVDLL instead of _WIN32 to control gprDisc init in compile.c

Without this change, an upcoming commit that changes cgraph.h to use
GVDLL instead of _WIN32 to control storage-class attributes would
cause this error:

compile.c:85:29: error: initializer element is not constant
   85 | static Agdisc_t gprDisc = { &AgMemDisc, &AgIdDisc, &gprIoDisc };
      |                             ^
compile.c:85:29: note: (near initialization for ‘gprDisc.mem’)

Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.
lib/gvpr/compile.c