summaryrefslogtreecommitdiff
path: root/common/sw_canvas.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-21 12:35:34 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:52 +0100
commit08326f733a2311ad241fad7146516c69840b675e (patch)
tree68632b12292a9980b1836766f91f27f5af0f73f3 /common/sw_canvas.c
parentd88b144f1bc450b00c1b78ac58d88ef2e46a5868 (diff)
add #include <config.h> to all source files
When using config.h, it must be the very first include in all source files since it contains #define that may change the compilation process (eg libc structure layout changes when it's used to enable large file support on 32 bit x86 archs). This commit adds it at the beginning of all .c and .cpp files
Diffstat (limited to 'common/sw_canvas.c')
-rw-r--r--common/sw_canvas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index e1b13e0..651c52b 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#ifndef SPICE_CANVAS_INTERNAL
#error "This file shouldn't be compiled directly"