summaryrefslogtreecommitdiff
path: root/kicad/dwg.c
diff options
context:
space:
mode:
Diffstat (limited to 'kicad/dwg.c')
-rw-r--r--kicad/dwg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kicad/dwg.c b/kicad/dwg.c
index 2779867..fc0efa2 100644
--- a/kicad/dwg.c
+++ b/kicad/dwg.c
@@ -11,7 +11,6 @@
*/
-#define _GNU_SOURCE /* for asprintf */
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
@@ -267,7 +266,7 @@ void dwg_glabel(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
if (bbox)
bbox_from_poly(bbox, n, vx, vy);
- if (asprintf(&tag, "G:%s", s)) {}
+ alloc_printf(&tag, "G:%s", s);
gfx_tag(gfx, tag, n, vx, vy);
}