summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2021-02-23 13:36:05 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2021-02-23 13:36:05 -0500
commita3f3a544e90ebed221c114a80006637df0f7a116 (patch)
tree954622eb7817c05552e212d3f4e35defe9d4db69
parent9f3ab6fcdbed460ce2ed87d38da2d31de41ee8c1 (diff)
Alpha patch tweaked to work with tcc
-rw-r--r--config.def.h9
-rw-r--r--config.mk2
2 files changed, 8 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 3098fbe..3ccdbe8 100644
--- a/config.def.h
+++ b/config.def.h
@@ -9,8 +9,13 @@ static const char *fonts[] = {
"monospace:size=12",
"JoyPixels:pixelsize=11:antialias=true:autohint=true"
};
-static const unsigned int bgalpha = 0xe0;
-static const unsigned int fgalpha = OPAQUE;
+
+#define bgalpha 0xe0
+#define fgalpha OPAQUE
+
+/* static const unsigned int bgalpha = 0xe0; */
+/* static const unsigned int fgalpha = OPAQUE; */
+
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
/* fg bg */
diff --git a/config.mk b/config.mk
index 260eeae..831e549 100644
--- a/config.mk
+++ b/config.mk
@@ -28,4 +28,4 @@ CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
LDFLAGS = $(LIBS)
# compiler and linker
-CC = cc
+CC = tcc