reshuffle included files to include config.h as first - v2

config.h may contain defines like _FILE_OFFSET_BITS which influence
the system wide include files (off_t types, open -> open64 function
usage etc.).

Fixes: ad3a8b8b ("reshuffle included files to include config.h as first")
Related: https://github.com/alsa-project/alsa-lib/pull/333
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2023-09-13 12:27:21 +02:00
parent 0e3dfb9f70
commit 81a7a93636
11 changed files with 10 additions and 18 deletions

View file

@ -29,13 +29,13 @@
*
*/
#include "local.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include "local.h"
#ifndef DOC_HIDDEN
typedef struct {

View file

@ -144,12 +144,12 @@ This example shows open and read/write rawmidi operations.
* Shows open and read/write rawmidi operations.
*/
#include "rawmidi_local.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#include "rawmidi_local.h"
/**
* \brief setup the default parameters

View file

@ -19,10 +19,10 @@
*
*/
#include "local.h"
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "local.h"
typedef struct {
int (*close)(snd_rawmidi_t *rawmidi);

View file

@ -19,13 +19,11 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include "rawmidi_local.h"
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "rawmidi_local.h"
#include "seq.h"
#include "seq_midi_event.h"

View file

@ -4,10 +4,6 @@
* \brief Universal MIDI Protocol (UMP) Interface
*/
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "local.h"
#include "rawmidi_local.h"
#include "ump_local.h"

View file

@ -777,8 +777,8 @@ void event_filter(snd_seq_t *seq, snd_seq_event_t *ev)
*/
#include <poll.h>
#include "seq_local.h"
#include <poll.h>
/****************************************************************************
* *

View file

@ -20,9 +20,9 @@
*
*/
#include "seq_local.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include "seq_local.h"
#ifndef PIC
/* entry for static linking */

View file

@ -23,10 +23,10 @@
#ifndef __SEQ_LOCAL_H
#define __SEQ_LOCAL_H
#include "local.h"
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "local.h"
#define SND_SEQ_OBUF_SIZE (16*1024) /* default size */
#define SND_SEQ_IBUF_SIZE 500 /* in event_size aligned */

View file

@ -28,10 +28,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "local.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#include "local.h"
#ifndef DOC_HIDDEN

View file

@ -20,14 +20,12 @@
*
*/
#include <stdio.h>
#include <stdlib.h>
#include "seq_local.h"
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <ctype.h>
#include <sys/ioctl.h>
#include "seq_local.h"
/**
* \brief queue controls - start/stop/continue

View file

@ -18,7 +18,7 @@
*
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <errno.h>
#include <assert.h>