summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhwware <wen.hui.ware@gmail.com>2020-05-05 23:35:08 -0400
committerhwware <wen.hui.ware@gmail.com>2020-05-05 23:35:08 -0400
commit24173d11bf5962b00747333136d4b4324b8cd81a (patch)
treea3f4e3b9ce526609623d1a7e9f233a3e8803911b
parent54cb8214d9bca268458752b3be92f038d4f52445 (diff)
downloadredis-24173d11bf5962b00747333136d4b4324b8cd81a.tar.gz
add include guard for lolwut.h
-rw-r--r--src/lolwut.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lolwut.h b/src/lolwut.h
index 38c0de423..682d00531 100644
--- a/src/lolwut.h
+++ b/src/lolwut.h
@@ -34,6 +34,10 @@
/* This represents a very simple generic canvas in order to draw stuff.
* It's up to each LOLWUT versions to translate what they draw to the
* screen, depending on the result to accomplish. */
+
+#ifndef __LOLWUT_H
+#define __LOLWUT_H
+
typedef struct lwCanvas {
int width;
int height;
@@ -47,3 +51,5 @@ void lwDrawPixel(lwCanvas *canvas, int x, int y, int color);
int lwGetPixel(lwCanvas *canvas, int x, int y);
void lwDrawLine(lwCanvas *canvas, int x1, int y1, int x2, int y2, int color);
void lwDrawSquare(lwCanvas *canvas, int x, int y, float size, float angle, int color);
+
+#endif