From f930c3b81bdf9c05152fb005562b3869f6e36f34 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Thu, 4 Jun 2020 20:41:25 +0300 Subject: [PATCH] Fix GCC10 compilation --- mpg321.c | 8 ++++++++ mpg321.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/mpg321.c b/mpg321.c index 19282bb..663882e 100644 --- a/mpg321.c +++ b/mpg321.c @@ -63,6 +63,14 @@ #include #include +output_frame *Output_Queue; +decoded_frames *Decoded_Frames; +int semarray; +int mad_decoder_position; +int output_buffer_position; +double real[FFT_BUFFER_SIZE]; +double imag[FFT_BUFFER_SIZE]; +int loop_remaining; int pflag = 0; int volume = 0; diff --git a/mpg321.h b/mpg321.h index 798bff0..235cf4a 100644 --- a/mpg321.h +++ b/mpg321.h @@ -116,7 +116,7 @@ extern char *playlist_file; extern int quit_now; extern char remote_input_buf[PATH_MAX + 5]; extern int file_change; -int loop_remaining; +extern int loop_remaining; extern int status; extern int scrobbler_time; @@ -233,8 +233,8 @@ RETSIGTYPE handle_sigchld(int sig); #define FFT_BUFFER_SIZE_LOG 9 #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG) /* 512 */ /*Temporary data stores to perform FFT in */ -double real[FFT_BUFFER_SIZE]; -double imag[FFT_BUFFER_SIZE]; +extern double real[FFT_BUFFER_SIZE]; +extern double imag[FFT_BUFFER_SIZE]; typedef struct { double real[FFT_BUFFER_SIZE]; @@ -258,10 +258,10 @@ fft_state *fft_init(void); /* Output buffer process */ void frame_buffer_p(); /* Semaphore array */ -int semarray; +extern int semarray; /* Input/Output buffer position */ -int mad_decoder_position; -int output_buffer_position; +extern int mad_decoder_position; +extern int output_buffer_position; /* Output Frame including needed information */ typedef struct { unsigned char data[4*1152]; @@ -285,10 +285,10 @@ typedef struct { } decoded_frames; /* Output frame queue pointer */ -output_frame *Output_Queue; +extern output_frame *Output_Queue; /* Shared total decoded frames */ -decoded_frames *Decoded_Frames; +extern decoded_frames *Decoded_Frames; #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) /* */ -- 2.26.2 3608476b36'>test.drv
0300'>2024-07-10
AgeCommit message (Expand)Author
gnu: ci: Cross-build for fewer platforms....* gnu/ci.scm (%unsupported-platform-triplets): New variable. (cross-jobs): Also don't build for systems listed in %unsupported-platform-triplets. Change-Id: Ic31ae6d307f2d243c098ec050bdb9d09060466ac Efraim Flashner
2024-06-13ci: Add cross-compilation jobs for x86_64-linux-gnux32....* gnu/ci.scm (cross-jobs)[same?]: Special case x86_64-linux-gnux32. Change-Id: I877eb50d6b0b0bf10474c58f8e9d5ee92f1705d2 Ludovic Courtès
2024-05-31ci: Build visionfive2-barebones-raw-image....* gnu/ci.scm (%guix-system-images): Add visionfive2-barebones-raw-image. Change-Id: I0a0edccf00119d6b23b864bb0123be6ca7b01d34 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Zheng Junjie
2024-04-17ci: Don’t cross-compile to xtensa-ath9k-elf....This is a followup to 9a60894156c3ea2c609ae0cd787df949f2d6ecc2. * gnu/ci.scm (%bare-platform-triplets): New variable. (cross-jobs)[pointless?]: Use it. Change-Id: I4701bc402bb93d372d46b7208697e0f998a1dc62 Ludovic Courtès
2024-01-23ci: Don't cross compile to or1k-elf....* gnu/ci.scm (cross-jobs)[pointless?]: Don't build any packages for or1k-elf. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Change-Id: I294429d5318b94fb8e7780a37f3608b5321cf6ca Mathieu Othacehe
2023-12-18gnu: ci: Build tuned packages for common baselines....* gnu/ci.scm (%x86-64-micro-architectures): Update the list of micro-architectures to also match the psABI levels. Change-Id: Iee2f65376a00ad2ee5fb393c2e64c07f866d8116 Efraim Flashner
2023-12-12ci: Don't cross compile to avr....* gnu/ci.scm (cross-jobs)[pointless?]: Don't build any packages for avr. Change-Id: I1728727874d65461b82364e71b70c7d1fd050d90 Efraim Flashner