From 9e0d3750c543de49ccc43512cb3fbaa1f42f1648 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 6 Jan 2017 14:57:18 -0500 Subject: 9term, win: work around bsd linker nonsense Change-Id: Ifcef0636ee1e1fd0f9b06a8d1a99d58fae831318 Reviewed-on: https://plan9port-review.googlesource.com/2780 Reviewed-by: Russ Cox --- include/draw.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/draw.h b/include/draw.h index 2bc9b4be..3a012959 100644 --- a/include/draw.h +++ b/include/draw.h @@ -525,6 +525,8 @@ extern int _drawdebug; /* set to 1 to see errors from flushimage */ extern void _setdrawop(Display*, Drawop); extern Display *_initdisplay(void(*)(Display*,char*), char*); +extern void needdisplay(void); /* call instead of initdraw to get (null) variable linked in */ + #define BGSHORT(p) (((p)[0]<<0) | ((p)[1]<<8)) #define BGLONG(p) ((BGSHORT(p)<<0) | (BGSHORT(p+2)<<16)) #define BPSHORT(p, v) ((p)[0]=(v), (p)[1]=((v)>>8)) -- cgit v1.2.3