]> source.dussan.org Git - tigervnc.git/commitdiff
Sync with libjpeg-turbo 1.0.1
authorDRC <dcommander@users.sourceforge.net>
Thu, 30 Sep 2010 06:42:45 +0000 (06:42 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 30 Sep 2010 06:42:45 +0000 (06:42 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4148 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/jpeg/configure.ac
common/jpeg/simd/jsimd_x86_64.c

index 2e401489660d9b732de9e37bc502cf91fd2fcb10..9384d395c43f3e4df2f59e8d50719c4113f233df 100644 (file)
@@ -8,8 +8,6 @@ AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])
 
 # Always build with prototypes
 AC_DEFINE([HAVE_PROTOTYPES], 1, [Define if your compiler supports prototypes])
-# Don't use undefined types
-AC_DEFINE([INCOMPLETE_TYPES_BROKEN], 1, [Define if you want use complete types])
 
 # Checks for programs.
 SAVED_CFLAGS=${CFLAGS}
@@ -21,6 +19,13 @@ AC_PROG_INSTALL
 AC_PROG_LIBTOOL
 AC_PROG_LN_S
 
+# Check whether compiler supports pointers to undefined structures
+AC_MSG_CHECKING(whether compiler supports pointers to undefined structures)
+AC_TRY_COMPILE([ typedef struct undefined_structure * undef_struct_ptr; ], ,
+AC_MSG_RESULT(yes),
+[AC_MSG_RESULT(no)
+AC_DEFINE([INCOMPLETE_TYPES_BROKEN],[1],[Compiler does not support pointers to undefined structures.])])
+
 if test "x${GCC}" = "xyes"; then
   if test "x${SAVED_CFLAGS}" = "x"; then
     CFLAGS=-O3
index 92610074b59bcf6258b9b3559060798124587dac..4bff6c2a3b798ebf5e48b8522dd2e6fea6c0df14 100644 (file)
@@ -18,7 +18,7 @@
 #include "../jsimd.h"
 #include "../jdct.h"
 #include "../jsimddct.h"
-#include "simd/jsimd.h"
+#include "jsimd.h"
 
 /*
  * In the PIC cases, we have no guarantee that constants will keep