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
|
commit 82c05c421b48240e28cd350e2eafa803c7039eac
Author: Jaroslav Škarvada <jskarvad@redhat.com>
Date: Tue Feb 6 14:34:31 2024 +0100
Fixed compilation with gcc-14
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
diff --git a/src/anaglyph/anaglyph.c b/src/anaglyph/anaglyph.c
index 5ee0b32..1c2c2d3 100644
--- a/src/anaglyph/anaglyph.c
+++ b/src/anaglyph/anaglyph.c
@@ -18,6 +18,7 @@
* Author: Patryk Kowalczyk <wodor@wodor.org>
**/
+#include <stdlib.h>
#include <compiz-core.h>
#include "anaglyph_options.h"
diff --git a/src/atlantis/atlantis-internal.h b/src/atlantis/atlantis-internal.h
index 4b3e903..bf3c84c 100644
--- a/src/atlantis/atlantis-internal.h
+++ b/src/atlantis/atlantis-internal.h
@@ -102,6 +102,7 @@
#define NRAND(n) ((int) (LRAND() % (n)))
#define MAXRAND (2147483648.0) /* unsigned 1<<31 as a float */
+#include <stdlib.h>
#include <math.h>
#include <float.h>
diff --git a/src/elements/elements.c b/src/elements/elements.c
index 9c3d61f..0da9b14 100644
--- a/src/elements/elements.c
+++ b/src/elements/elements.c
@@ -48,6 +48,7 @@
+#include <stdlib.h>
#include <compiz-core.h>
#include "elements_options.h"
#define GET_DISPLAY(d) \
diff --git a/src/fakeargb/fakeargb.c b/src/fakeargb/fakeargb.c
index 1c8c241..ea123d5 100644
--- a/src/fakeargb/fakeargb.c
+++ b/src/fakeargb/fakeargb.c
@@ -19,6 +19,7 @@
*
**/
+#include <stdlib.h>
#include <compiz-core.h>
#include "fakeargb_options.h"
diff --git a/src/fireflies/fireflies.c b/src/fireflies/fireflies.c
index 6d271c2..1de8f24 100644
--- a/src/fireflies/fireflies.c
+++ b/src/fireflies/fireflies.c
@@ -27,6 +27,7 @@
* for helping me make this possible
*/
+#include <stdlib.h>
#include <math.h>
#include <compiz-core.h>
diff --git a/src/freewins/freewins.c b/src/freewins/freewins.c
index bd55f56..dc1508c 100644
--- a/src/freewins/freewins.c
+++ b/src/freewins/freewins.c
@@ -48,6 +48,7 @@
* - 'Rotate' Button
*/
+#include <stdlib.h>
#include "freewins.h"
static CompMetadata freewinsMetadata;
diff --git a/src/freewins/input.c b/src/freewins/input.c
index 96a9009..ae3c827 100644
--- a/src/freewins/input.c
+++ b/src/freewins/input.c
@@ -48,6 +48,7 @@
*/
#include "freewins.h"
+#include <stdlib.h>
#include <cairo/cairo-xlib.h>
/* ------ Input Prevention -------------------------------------------*/
diff --git a/src/freewins/util.c b/src/freewins/util.c
index 7be9152..0301ccd 100644
--- a/src/freewins/util.c
+++ b/src/freewins/util.c
@@ -48,6 +48,7 @@
*/
#include "freewins.h"
+#include <stdlib.h>
/* ------ Utility Functions ---------------------------------------------*/
diff --git a/src/smartput/smartput.c b/src/smartput/smartput.c
index a43f4c1..2452881 100644
--- a/src/smartput/smartput.c
+++ b/src/smartput/smartput.c
@@ -45,6 +45,7 @@
* Animation is based on Put Plugin (Author: Darryll Truchan <moopsy@comcast.net>
*
*/
+#include <stdlib.h>
#include <X11/Xatom.h>
#include <math.h>
#include <compiz-core.h>
diff --git a/src/snow/snow.c b/src/snow/snow.c
index 80e94aa..e6649cd 100644
--- a/src/snow/snow.c
+++ b/src/snow/snow.c
@@ -27,6 +27,7 @@
* for helping me make this possible
*/
+#include <stdlib.h>
#include <math.h>
#include <compiz-core.h>
diff --git a/src/snowglobe/movement.c b/src/snowglobe/movement.c
index cf54dad..2d81376 100644
--- a/src/snowglobe/movement.c
+++ b/src/snowglobe/movement.c
@@ -1,5 +1,6 @@
#include "snowglobe-internal.h"
#include "snowglobe_options.h"
+#include <stdlib.h>
#include <math.h>
#include <float.h>
diff --git a/src/snowglobe/water.c b/src/snowglobe/water.c
index fc3e51c..a1c4009 100644
--- a/src/snowglobe/water.c
+++ b/src/snowglobe/water.c
@@ -24,6 +24,7 @@
/* Uses water amplitude calculation by David Mikos */
+#include <stdlib.h>
#include "snowglobe-internal.h"
#include "math.h"
#include "snowglobe_options.h"
diff --git a/src/stars/star.c b/src/stars/star.c
index 96a26c1..4dee665 100644
--- a/src/stars/star.c
+++ b/src/stars/star.c
@@ -38,6 +38,7 @@
* for helping me make this possible
*/
+#include <stdlib.h>
#include <math.h>
#include <compiz-core.h>
diff --git a/src/tile/tile.c b/src/tile/tile.c
index d58cac5..fd5974c 100644
--- a/src/tile/tile.c
+++ b/src/tile/tile.c
@@ -25,6 +25,7 @@
*
**/
+#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <compiz-core.h>
diff --git a/src/wizard/wizard.c b/src/wizard/wizard.c
index d60ff94..66297b9 100644
--- a/src/wizard/wizard.c
+++ b/src/wizard/wizard.c
@@ -21,6 +21,7 @@
*
*/
+#include <stdlib.h>
#include <math.h>
#include <string.h>
|