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-lib/pull/333
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2023-08-30 18:22:59 +02:00
parent 6142ff0ca7
commit ad3a8b8b31
77 changed files with 92 additions and 101 deletions

View file

@ -22,9 +22,9 @@
#define SND_INTERVAL_C
#define SND_INTERVAL_INLINE
#include "pcm_local.h"
#include <sys/types.h>
#include <limits.h>
#include "pcm_local.h"
static inline void div64_32(uint64_t *n, uint32_t d, uint32_t *rem)
{

View file

@ -22,6 +22,7 @@
#define SND_MASK_C
#define SND_MASK_INLINE
#include "config.h"
#include <sys/types.h>
#include <limits.h>
#include "pcm_local.h"

View file

@ -658,6 +658,7 @@ playback devices.
\example ../../test/latency.c
*/
#include "pcm_local.h"
#include <stdio.h>
#include <string.h>
#if HAVE_MALLOC_H
@ -669,7 +670,6 @@ playback devices.
#include <poll.h>
#include <sys/mman.h>
#include <limits.h>
#include "pcm_local.h"
#ifndef DOC_HIDDEN
/* return specific error codes for known bad PCM states */

View file

@ -56,11 +56,10 @@ IMA compatibility project proceedings, Vol 2, Issue 2, May 1992.
come across a good description of XA yet.
*/
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "plugin_ops.h"
#include "bswap.h"
#ifndef PIC
/* entry for static linking */

View file

@ -26,8 +26,8 @@
*
*/
#include "bswap.h"
#include "pcm_local.h"
#include "bswap.h"
#include "pcm_plugin.h"
#include "plugin_ops.h"

View file

@ -26,9 +26,9 @@
*
*/
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "bswap.h"
#ifndef PIC
/* entry for static linking */

View file

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

View file

@ -26,11 +26,11 @@
*
*/
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "bswap.h"
#include <ctype.h>
#include <string.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#ifndef PIC
/* entry for static linking */

View file

@ -26,10 +26,10 @@
*
*/
#include <sys/ioctl.h>
#include <limits.h>
#include "pcm_local.h"
#include "pcm_generic.h"
#include <sys/ioctl.h>
#include <limits.h>
#ifndef DOC_HIDDEN

View file

@ -27,6 +27,9 @@
*
*/
#include "pcm_local.h"
#include "../control/control_local.h"
#include "../timer/timer_local.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
@ -37,9 +40,6 @@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include "pcm_local.h"
#include "../control/control_local.h"
#include "../timer/timer_local.h"
//#define DEBUG_RW /* use to debug readi/writei/readn/writen */
//#define DEBUG_MMAP /* debug mmap_commit */

View file

@ -26,11 +26,10 @@
*
*/
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "plugin_ops.h"
#include "bswap.h"
#ifndef PIC
/* entry for static linking */

View file

@ -32,12 +32,11 @@
* http://www.medianet.ag
*/
#include "config.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include <dirent.h>
#include <locale.h>
#include <math.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "ladspa.h"

View file

@ -26,11 +26,10 @@
*
*/
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "plugin_ops.h"
#include "bswap.h"
#ifndef DOC_HIDDEN

View file

@ -26,11 +26,10 @@
*
*/
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "plugin_ops.h"
#include "bswap.h"
#ifndef PIC
/* entry for static linking */

View file

@ -27,12 +27,12 @@
*/
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "bswap.h"
#include <time.h>
#include <pthread.h>
#include <dlfcn.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#define atomic_read(ptr) __atomic_load_n(ptr, __ATOMIC_SEQ_CST )
#define atomic_add(ptr, n) __atomic_add_fetch(ptr, n, __ATOMIC_SEQ_CST)

View file

@ -19,12 +19,12 @@
*
*/
#include "pcm_local.h"
#include "bswap.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "bswap.h"
#include "pcm_local.h"
/**

View file

@ -18,7 +18,7 @@
*
*/
#include "config.h"
#include "pcm_local.h"
#include <stdio.h>
#if HAVE_MALLOC_H
#include <malloc.h>
@ -29,7 +29,6 @@
#ifdef HAVE_SYS_SHM_H
#include <sys/shm.h>
#endif
#include "pcm_local.h"
void snd_pcm_mmap_appl_backward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
{

View file

@ -26,11 +26,10 @@
*
*/
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "plugin_ops.h"
#include "bswap.h"
#ifndef PIC
/* entry for static linking */

View file

@ -26,13 +26,13 @@
*
*/
#include "pcm_local.h"
#include "pcm_generic.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include "pcm_local.h"
#include "pcm_generic.h"
#ifndef PIC
/* entry for static linking */

View file

@ -26,10 +26,10 @@
*
*/
#include "bswap.h"
#include <limits.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "bswap.h"
#include <limits.h>
#ifndef PIC
/* entry for static linking */

View file

@ -82,9 +82,9 @@ pcm.rate44100Hz {
*/
#include <limits.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include <limits.h>
#ifndef DOC_HIDDEN

View file

@ -27,13 +27,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <inttypes.h>
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "pcm_rate.h"
#include "plugin_ops.h"
#include "bswap.h"
#include <inttypes.h>
#if 0
#define DEBUG_REFINE

View file

@ -20,13 +20,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <inttypes.h>
#include "bswap.h"
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "pcm_rate.h"
#include "plugin_ops.h"
#include "bswap.h"
#include <inttypes.h>
/* LINEAR_DIV needs to be large enough to handle resampling from 768000 -> 8000 */

View file

@ -26,12 +26,11 @@
*
*/
#include "bswap.h"
#include <math.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "plugin_ops.h"
#include "bswap.h"
#include <math.h>
#ifndef PIC
/* entry for static linking */

View file

@ -26,6 +26,7 @@
*
*/
#include "pcm_local.h"
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
@ -36,7 +37,6 @@
#include <sys/socket.h>
#include <poll.h>
#include <pthread.h>
#include "pcm_local.h"
#ifndef PIC
/* entry for static linking */

View file

@ -26,11 +26,10 @@
*
*/
#include "bswap.h"
#include <math.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "bswap.h"
#include <math.h>
#include <sound/tlv.h>
#ifndef PIC