summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2020-02-29 09:47:06 -0800
committerRob Clark <robdclark@chromium.org>2020-03-07 09:22:17 -0800
commit908ef39864442c0807954af5d3f88a3da1a6f8a5 (patch)
tree1df318330fedd9865380f5fd2b904a4f41ef1565
parentb1852df7b4efc841431e83547e67f019d5c351d4 (diff)
fix build error
/usr/bin/ld: kmscube@exe/cube-tex.c.o:/home/robclark/src/kmscube/debug/../cube-tex.c:47: multiple definition of `gl'; kmscube@exe/cube-smooth.c.o:/home/robclark/src/kmscube/debug/../cube-smooth.c:40: first defined here
-rw-r--r--cube-smooth.c2
-rw-r--r--cube-tex.c2
-rw-r--r--cube-video.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/cube-smooth.c b/cube-smooth.c
index 483c2ae..b8d2c32 100644
--- a/cube-smooth.c
+++ b/cube-smooth.c
@@ -28,7 +28,7 @@
#include "esUtil.h"
-struct {
+static struct {
struct egl egl;
GLfloat aspect;
diff --git a/cube-tex.c b/cube-tex.c
index 57fe02d..2714084 100644
--- a/cube-tex.c
+++ b/cube-tex.c
@@ -30,7 +30,7 @@
#include "common.h"
#include "esUtil.h"
-struct {
+static struct {
struct egl egl;
GLfloat aspect;
diff --git a/cube-video.c b/cube-video.c
index 8cb8f24..f62b666 100644
--- a/cube-video.c
+++ b/cube-video.c
@@ -31,7 +31,7 @@
#include "common.h"
#include "esUtil.h"
-struct {
+static struct {
struct egl egl;
GLfloat aspect;