reshuffle included files to include config.h as first

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

Related: https://github.com/alsa-project/alsa-utils/pull/223
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2023-08-30 18:48:23 +02:00
parent 9b95d9b20a
commit feb9c4cdec
36 changed files with 48 additions and 15 deletions

View file

@ -20,6 +20,7 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -21,6 +21,7 @@
*
*/
#include "aconfig.h"
#include <ctype.h>
#include <syslog.h>
#include <alsa/asoundlib.h>

View file

@ -18,6 +18,7 @@
*
*/
#include "aconfig.h"
#include <math.h>
#include <alsa/asoundlib.h>

View file

@ -21,6 +21,7 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -20,6 +20,8 @@
*/
#define _GNU_SOURCE
#include "aconfig.h"
#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@ -37,8 +39,6 @@
#include <fcntl.h>
#include <alsa/asoundlib.h>
#include <time.h>
#include "aconfig.h"
#include "version.h"
#define NSEC_PER_SEC 1000000000L

View file

@ -18,6 +18,7 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -9,6 +9,8 @@
#ifndef __ALSA_UTILS_AXFER_CONTAINER__H_
#define __ALSA_UTILS_AXFER_CONTAINER__H_
#include "aconfig.h"
#define _LARGEFILE64_SOURCE
#include <sys/types.h>

View file

@ -9,12 +9,12 @@
#ifndef __ALSA_UTILS_AXFER_XFER__H_
#define __ALSA_UTILS_AXFER_XFER__H_
#include "aconfig.h"
#include "mapper.h"
#include <getopt.h>
#include "aconfig.h"
enum xfer_type {
XFER_TYPE_UNSUPPORTED = -1,
XFER_TYPE_LIBASOUND = 0,

View file

@ -13,6 +13,8 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
@ -22,7 +24,6 @@
#include <alsa/asoundlib.h>
#include "aconfig.h"
#include "gettext.h"
#include "common.h"

View file

@ -13,6 +13,8 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@ -22,7 +24,6 @@
#include <math.h>
#include <fftw3.h>
#include "aconfig.h"
#include "gettext.h"
#include "common.h"

View file

@ -13,13 +13,14 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include "aconfig.h"
#include "gettext.h"
#include "common.h"

View file

@ -13,6 +13,7 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>

View file

@ -13,6 +13,8 @@
*
*/
#include "aconfig.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -20,6 +20,8 @@
* stable indefinitely
*/
#include "aconfig.h"
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>

View file

@ -13,6 +13,8 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
@ -22,7 +24,6 @@
#include <tinyalsa/asoundlib.h>
#include "aconfig.h"
#include "gettext.h"
#include "common.h"

View file

@ -17,6 +17,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "aconfig.h"
#include <stdio.h>
#include <ctype.h>
#include <alsa/asoundlib.h>

View file

@ -23,6 +23,7 @@
*
*/
#include "aconfig.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@ -271,7 +272,7 @@ static int nhlt_to_json(FILE *out, const char *nhlt_file)
*/
#define PROG "nhlt-dmic-info"
#define VERSION "1"
#define PROG_VERSION "1"
#define NHLT_FILE "/sys/firmware/acpi/tables/NHLT"
@ -380,7 +381,7 @@ int main(int argc, char *argv[])
debug = 1;
break;
case 'v':
printf(PROG " version " VERSION "\n");
printf(PROG " version " PROG_VERSION "\n");
res = EXIT_SUCCESS;
goto out;
case '?': // error msg already printed

View file

@ -15,6 +15,7 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <ctype.h>
#include <string.h>
@ -26,7 +27,6 @@
#include <locale.h>
#include <sys/ioctl.h>
#include <alsa/asoundlib.h>
#include "aconfig.h"
#include "gettext.h"
#ifdef SND_SEQ_PORT_CAP_INACTIVE

View file

@ -21,6 +21,7 @@
/* TODO: sequencer queue timer selection */
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@ -28,7 +29,6 @@
#include <getopt.h>
#include <unistd.h>
#include <alsa/asoundlib.h>
#include "aconfig.h"
#include "version.h"
#ifdef HAVE_SEQ_CLIENT_INFO_GET_MIDI_VERSION
#include <alsa/ump_msg.h>

View file

@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@ -27,7 +28,6 @@
#include <getopt.h>
#include <poll.h>
#include <alsa/asoundlib.h>
#include "aconfig.h"
#include "version.h"
#ifdef HAVE_SEQ_CLIENT_INFO_GET_MIDI_VERSION
#include <alsa/ump_msg.h>

View file

@ -15,6 +15,7 @@
*
*/
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@ -28,7 +29,6 @@
#include <getopt.h>
#include <signal.h>
#include <assert.h>
#include "aconfig.h"
#include "gettext.h"
/*

View file

@ -24,6 +24,7 @@
Copyleft 1999 Phil Burk - No rights reserved.
*/
#include "aconfig.h"
#include <stdio.h>
#include <math.h>
#include "pink.h"

View file

@ -36,6 +36,8 @@
* $Id: speaker_test.c,v 1.00 2003/11/26 19:43:38 jcdutton Exp $
*/
#include "aconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -53,7 +55,6 @@
#include <sys/time.h>
#include <math.h>
#include "pink.h"
#include "aconfig.h"
#include "gettext.h"
#include "version.h"
#include "os_compat.h"

View file

@ -4,6 +4,7 @@
//
// Author: Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include <stdint.h>
#include <errno.h>
#include <stdio.h>

View file

@ -5,6 +5,7 @@
// Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
// Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include <stdio.h>
#include <stdint.h>
#include "dmic-debug.h"

View file

@ -5,6 +5,7 @@
// Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
// Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include <stdint.h>
#include <errno.h>
#include <stdio.h>

View file

@ -4,6 +4,7 @@
//
// Author: Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include "intel-nhlt.h"
static int get_int_val(snd_config_t *input, long *int_val, snd_config_t *top)

View file

@ -4,6 +4,7 @@
//
// Author: Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include <stdint.h>
#include <errno.h>
#include <stdio.h>

View file

@ -4,6 +4,7 @@
//
// Author: Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include <stdio.h>
#include <stdint.h>
#include "ssp-debug.h"

View file

@ -7,6 +7,7 @@
// Rander Wang <rander.wang@linux.intel.com>
// Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include <stdint.h>
#include <errno.h>
#include <stdio.h>

View file

@ -4,6 +4,7 @@
//
// Author: Jaska Uimonen <jaska.uimonen@linux.intel.com>
#include "aconfig.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -17,6 +17,7 @@
The full GNU General Public License is included in this distribution
in the file called LICENSE.GPL.
*/
#include "aconfig.h"
#include <assert.h>
#include <errno.h>
#include <limits.h>

View file

@ -17,6 +17,7 @@
The full GNU General Public License is included in this distribution
in the file called LICENSE.GPL.
*/
#include "aconfig.h"
#include <errno.h>
#include <stdio.h>
#include <alsa/asoundlib.h>

View file

@ -17,6 +17,7 @@
The full GNU General Public License is included in this distribution
in the file called LICENSE.GPL.
*/
#include "aconfig.h"
#include <assert.h>
#include <errno.h>
#include <stddef.h>

View file

@ -18,6 +18,7 @@
in the file called LICENSE.GPL.
*/
#include "aconfig.h"
#include <stdarg.h>
#include <stdio.h>
#include <stddef.h>

View file

@ -20,6 +20,7 @@
in the file called LICENSE.GPL.
*/
#include "aconfig.h"
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>