1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
|
commit e4f0ed898dbfaffc287be7e695cd486ea2597f97
Author: Que Quotion <quequotion@gmail.com>
Date: Fri Jan 5 19:34:24 2024 +0000
explicitly include stdlib.h, fixes #36
diff --git a/src/addhelper/addhelper.c b/src/addhelper/addhelper.c
index 3bc8a6b..29b0b6a 100644
--- a/src/addhelper/addhelper.c
+++ b/src/addhelper/addhelper.c
@@ -24,6 +24,7 @@
*/
#include <compiz-core.h>
+#include <stdlib.h>
#include "addhelper_options.h"
#define GET_ADD_DISPLAY(d) \
diff --git a/src/bench/bench.c b/src/bench/bench.c
index 9cdef8c..ae64c58 100644
--- a/src/bench/bench.c
+++ b/src/bench/bench.c
@@ -21,6 +21,7 @@
**/
#include <compiz-core.h>
+#include <stdlib.h>
#include "bench_tex.h"
#include "bench_options.h"
diff --git a/src/firepaint/firepaint.c b/src/firepaint/firepaint.c
index b147b03..69a477c 100644
--- a/src/firepaint/firepaint.c
+++ b/src/firepaint/firepaint.c
@@ -20,6 +20,7 @@
*/
#include <compiz-core.h>
+#include <stdlib.h>
#include "firepaint_options.h"
#include "firepaint_tex.h"
diff --git a/src/grid/grid.c b/src/grid/grid.c
index a8d5152..e4b5624 100644
--- a/src/grid/grid.c
+++ b/src/grid/grid.c
@@ -23,6 +23,7 @@
*/
#include <compiz-core.h>
+#include <stdlib.h>
#include <string.h>
#include "grid_options.h"
diff --git a/src/highlightcontent/highlightcontent.c b/src/highlightcontent/highlightcontent.c
index 33bf932..5d66978 100644
--- a/src/highlightcontent/highlightcontent.c
+++ b/src/highlightcontent/highlightcontent.c
@@ -21,6 +21,7 @@
*/
#include <math.h>
+#include <stdlib.h>
#include <string.h>
#include <compiz-core.h>
diff --git a/src/loginout/loginout.c b/src/loginout/loginout.c
index e2889d2..839f7b4 100644
--- a/src/loginout/loginout.c
+++ b/src/loginout/loginout.c
@@ -20,6 +20,7 @@
*/
#include <compiz-core.h>
+#include <stdlib.h>
#include "loginout_options.h"
diff --git a/src/mblur/mblur.c b/src/mblur/mblur.c
index 103cd32..4e15c6d 100644
--- a/src/mblur/mblur.c
+++ b/src/mblur/mblur.c
@@ -20,6 +20,7 @@
*/
#include <math.h>
+#include <stdlib.h>
#include <compiz-core.h>
diff --git a/src/reflex/reflex.c b/src/reflex/reflex.c
index 8c6ebc3..83a7d66 100644
--- a/src/reflex/reflex.c
+++ b/src/reflex/reflex.c
@@ -19,6 +19,7 @@
*
*/
#include <compiz-core.h>
+#include <stdlib.h>
#include "reflex_options.h"
diff --git a/src/scalefilter/scalefilter.c b/src/scalefilter/scalefilter.c
index 55e2a96..c10c5d1 100644
--- a/src/scalefilter/scalefilter.c
+++ b/src/scalefilter/scalefilter.c
@@ -25,6 +25,7 @@
#define _GNU_SOURCE
#include <math.h>
+#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <locale.h>
diff --git a/src/shelf/shelf.c b/src/shelf/shelf.c
index cd17839..e4fd09c 100644
--- a/src/shelf/shelf.c
+++ b/src/shelf/shelf.c
@@ -33,6 +33,7 @@
#include <X11/extensions/shape.h>
#include <X11/cursorfont.h>
#include <math.h>
+#include <stdlib.h>
#include <string.h>
#include "shelf_options.h"
diff --git a/src/showmouse/showmouse.c b/src/showmouse/showmouse.c
index fe972a2..32c3cb9 100644
--- a/src/showmouse/showmouse.c
+++ b/src/showmouse/showmouse.c
@@ -25,6 +25,7 @@
*/
#include <math.h>
+#include <stdlib.h>
#include <string.h>
#include <compiz-core.h>
diff --git a/src/splash/splash.c b/src/splash/splash.c
index c72b9b0..986a3ec 100644
--- a/src/splash/splash.c
+++ b/src/splash/splash.c
@@ -20,6 +20,7 @@
*/
#include <math.h>
+#include <stdlib.h>
#include <compiz-core.h>
#include <X11/Xatom.h>
diff --git a/src/trailfocus/trailfocus.c b/src/trailfocus/trailfocus.c
index ecfa84d..05c50f4 100644
--- a/src/trailfocus/trailfocus.c
+++ b/src/trailfocus/trailfocus.c
@@ -25,6 +25,7 @@
*
*/
+#include <stdlib.h>
#include <string.h>
#include <compiz-core.h>
#include "trailfocus_options.h"
diff --git a/src/vidcap/vidcap.c b/src/vidcap/vidcap.c
index 10157b2..a08126d 100644
--- a/src/vidcap/vidcap.c
+++ b/src/vidcap/vidcap.c
@@ -27,6 +27,7 @@
#define _GNU_SOURCE /* For asprintf */
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/src/wallpaper/wallpaper.c b/src/wallpaper/wallpaper.c
index fd23b69..2c47fa7 100644
--- a/src/wallpaper/wallpaper.c
+++ b/src/wallpaper/wallpaper.c
@@ -23,6 +23,7 @@
*/
#include <stdarg.h>
+#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <dirent.h>
diff --git a/src/widget/widget.c b/src/widget/widget.c
index ce7d4f0..6d146fa 100644
--- a/src/widget/widget.c
+++ b/src/widget/widget.c
@@ -26,6 +26,7 @@
*
*/
+#include <stdlib.h>
#include <string.h>
#include <compiz-core.h>
#include <X11/Xatom.h>
|