Use config_ac.h consistently and correctly

This commit is contained in:
Daniel Richard G 2023-05-11 21:07:17 -04:00
parent 7fe7ce9434
commit 42d32e7496
8 changed files with 27 additions and 6 deletions

View File

@ -63,8 +63,11 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
#if defined(HAVE_CONFIG_H) #ifndef PIXMAN_REGION_MAX
#include <config_ac.h> #error "This file should be #included from pixman-region16.c, not compiled directly"
#endif
#ifndef CONFIG_AC_H
#error "config_ac.h not visible in pixman-region.c"
#endif #endif
#define PIXREGION_NIL(reg) ((reg)->data && !(reg)->data->numRects) #define PIXREGION_NIL(reg) ((reg)->data && !(reg)->data->numRects)

View File

@ -22,6 +22,10 @@
* xfree86(base)->evdev keycode mapping * xfree86(base)->evdev keycode mapping
*/ */
#if defined(HAVE_CONFIG_H)
#include <config_ac.h>
#endif
int xfree86_to_evdev[137 - 8 + 1] = int xfree86_to_evdev[137 - 8 + 1] =
{ {
/* MDSW */ 203, /* MDSW */ 203,

View File

@ -26,10 +26,6 @@
#if !defined(LIBIPM_H) #if !defined(LIBIPM_H)
#define LIBIPM_H #define LIBIPM_H
#if defined(HAVE_CONFIG_H)
#include <config_ac.h>
#endif
#include "arch.h" #include "arch.h"
#include "libipm_facilities.h" #include "libipm_facilities.h"

View File

@ -1,3 +1,6 @@
#if defined(HAVE_CONFIG_H)
#include <config_ac.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,3 +1,6 @@
#if defined(HAVE_CONFIG_H)
#include <config_ac.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -16,6 +16,10 @@
* limitations under the License. * limitations under the License.
*/ */
#if defined(HAVE_CONFIG_H)
#include <config_ac.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <pthread.h> #include <pthread.h>

View File

@ -16,6 +16,10 @@
* limitations under the License. * limitations under the License.
*/ */
#if defined(HAVE_CONFIG_H)
#include <config_ac.h>
#endif
#include "gtcp.h" #include "gtcp.h"
/** /**

View File

@ -16,6 +16,10 @@
* limitations under the License. * limitations under the License.
*/ */
#if defined(HAVE_CONFIG_H)
#include <config_ac.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>