diff options
| author | Dan Cross <cross@gajendra.net> | 2025-07-23 06:47:21 -0400 |
|---|---|---|
| committer | Dan Cross <cross@gajendra.net> | 2025-07-25 12:25:11 -0400 |
| commit | 156e745be9f6a1b19b0f8e2a931148786d7acad4 (patch) | |
| tree | c853bc58f9d7e88d84de2da625bc4dddcdf46780 /src/cmd/9term/dat.h | |
| parent | 1e6e30e91e7a2712d9507072b5ff3b59a73e5dfe (diff) | |
| download | plan9port-156e745be9f6a1b19b0f8e2a931148786d7acad4.tar.gz plan9port-156e745be9f6a1b19b0f8e2a931148786d7acad4.zip | |
all: remove need for `-fcommon`
Use `extern` where appropriate so that we can remove `-fcommon`
on macOS and others. On macOS, `-fcommon` generates a number of
linker warnings.
I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD
and illumos. I am not in a position to test on AIX or other
more esoteric platforms, however.
Diffstat (limited to 'src/cmd/9term/dat.h')
| -rw-r--r-- | src/cmd/9term/dat.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/9term/dat.h b/src/cmd/9term/dat.h index a215253f..1e22a424 100644 --- a/src/cmd/9term/dat.h +++ b/src/cmd/9term/dat.h @@ -209,19 +209,19 @@ struct Timer #define Extern extern #endif -Extern Font *font; +extern Font *font; Extern Mousectl *mousectl; Extern Mouse *mouse; Extern Keyboardctl *keyboardctl; -Extern Display *display; +extern Display *display; Extern Image *view; Extern Screen *wscreen; -Extern Cursor boxcursor; -Extern Cursor crosscursor; -Extern Cursor sightcursor; -Extern Cursor whitearrow; -Extern Cursor query; -Extern Cursor *corners[9]; +extern Cursor boxcursor; +extern Cursor crosscursor; +extern Cursor sightcursor; +extern Cursor whitearrow; +extern Cursor query; +extern Cursor *corners[9]; Extern Image *background; Extern Image *lightgrey; Extern Image *red; |
