Fix include config.h

It should be included, with its path, before any hamlib include
and before any #ifdef that uses the symbols that it defines.
pull/1873/head
Daniele Forsi IU5HKX 2025-08-30 09:17:16 +02:00
rodzic 0a06af1dde
commit 39e155efe7
20 zmienionych plików z 23 dodań i 21 usunięć

Wyświetl plik

@ -20,7 +20,7 @@
// along with fldigi. If not, see <http://www.gnu.org/licenses/>. // along with fldigi. If not, see <http://www.gnu.org/licenses/>.
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
#include "config.h" #include "hamlib/config.h"
#include <errno.h> #include <errno.h>
#include <time.h> #include <time.h>
#include <sys/time.h> #include <sys/time.h>

Wyświetl plik

@ -34,7 +34,7 @@
// HAMLIB INCLUDES // HAMLIB INCLUDES
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
#include "config.h" #include "hamlib/config.h"
#include "hamlib/rig.h" #include "hamlib/rig.h"
#include "serial.h" #include "serial.h"
#include "misc.h" #include "misc.h"

Wyświetl plik

@ -19,7 +19,7 @@
* *
*/ */
#include "config.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

Wyświetl plik

@ -20,7 +20,7 @@
* *
*/ */
#include "config.h" #include "hamlib/config.h"
// cppcheck-suppress * // cppcheck-suppress *
#include <stdint.h> #include <stdint.h>
// cppcheck-suppress * // cppcheck-suppress *

Wyświetl plik

@ -20,7 +20,7 @@
* *
*/ */
#include "config.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> /* String function definitions */ #include <string.h> /* String function definitions */

Wyświetl plik

@ -19,7 +19,7 @@
* *
*/ */
#include "config.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> /* String function definitions */ #include <string.h> /* String function definitions */

Wyświetl plik

@ -19,7 +19,7 @@
* *
*/ */
#include "config.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> /* String function definitions */ #include <string.h> /* String function definitions */

Wyświetl plik

@ -19,7 +19,7 @@
* *
*/ */
#include "config.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> /* String function definitions */ #include <string.h> /* String function definitions */

Wyświetl plik

@ -20,7 +20,7 @@
* *
*/ */
#include "config.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> /* String function definitions */ #include <string.h> /* String function definitions */

Wyświetl plik

@ -19,7 +19,7 @@
* *
*/ */
#include <hamlib/config.h> #include "hamlib/config.h"
/* /*
* Compile only this model if usrp is available * Compile only this model if usrp is available

Wyświetl plik

@ -23,7 +23,7 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include "config.h" #include "hamlib/config.h"
#ifdef HAVE_DLFCN_H #ifdef HAVE_DLFCN_H
# include <dlfcn.h> # include <dlfcn.h>

Wyświetl plik

@ -2,7 +2,7 @@
#include <stdio.h> #include <stdio.h>
#include "config.h" #include "hamlib/config.h"
#ifdef HAVE_DLFCN_H #ifdef HAVE_DLFCN_H
# include <dlfcn.h> # include <dlfcn.h>

Wyświetl plik

@ -21,7 +21,7 @@
* *
*/ */
#include <hamlib/config.h> #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

Wyświetl plik

@ -20,7 +20,7 @@
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "hamlib/config.h"
#endif #endif
#include <stdint.h> #include <stdint.h>

Wyświetl plik

@ -28,7 +28,7 @@
* BUT NOT LIMITED TO, LOSS OF DATA OR DATA BEING RENDERED INACCURATE. * BUT NOT LIMITED TO, LOSS OF DATA OR DATA BEING RENDERED INACCURATE.
*/ */
#include "config.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

Wyświetl plik

@ -1,8 +1,10 @@
#include "hamlib/rig.h" #include "hamlib/config.h"
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include "hamlib/rig.h"
#include "fifo.h" #include "fifo.h"
#include "config.h"
void initFIFO(FIFO_RIG *fifo) void initFIFO(FIFO_RIG *fifo)
{ {

Wyświetl plik

@ -23,7 +23,7 @@
#ifndef _PARALLEL_H #ifndef _PARALLEL_H
#define _PARALLEL_H 1 #define _PARALLEL_H 1
#include "config.h" #include "hamlib/config.h"
#include "hamlib/rig.h" #include "hamlib/rig.h"
#ifdef HAVE_PARALLEL #ifdef HAVE_PARALLEL

Wyświetl plik

@ -25,7 +25,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "config.h" #include <hamlib/config.h>
#if defined(HAVE_LIBUSB_H) #if defined(HAVE_LIBUSB_H)
#include <libusb.h> #include <libusb.h>
#elif defined(HAVE_LIBUSB_1_0_LIBUSB_H) #elif defined(HAVE_LIBUSB_1_0_LIBUSB_H)

Wyświetl plik

@ -1,4 +1,4 @@
#include "config.h" #include <hamlib/config.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

Wyświetl plik

@ -9,7 +9,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include "config.h" #include <hamlib/config.h>
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# include <netinet/in.h> # include <netinet/in.h>