Fix config.h include order

The header "config.h" needs to be the first header included in the
source file, no exceptions.
This commit is contained in:
João Valverde 2021-09-20 20:16:52 +01:00
parent 2c7d22dba2
commit 5f79503d67
26 changed files with 19 additions and 16 deletions

View File

@ -12,11 +12,11 @@
*
* Ref: Mesh Profile v1.0
*/
#include "config.h"
#include "packet-bluetooth.h"
#include "packet-btatt.h"
#include "packet-btmesh.h"
#include "config.h"
#include <epan/packet.h>
#include <epan/prefs.h>

View File

@ -13,10 +13,10 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <stdio.h>
#include "config.h"
#include <epan/packet.h>
#include <epan/expert.h>
#include "packet-dtn.h"

View File

@ -9,11 +9,10 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <stdlib.h>
#include "config.h"
#include "epan/packet.h"
void proto_register_noe(void);
void proto_reg_handoff_noe(void);

View File

@ -12,6 +12,7 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "wslua_file_common.h"

View File

@ -14,6 +14,7 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "wslua_pinfo_common.h"

View File

@ -12,6 +12,7 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "wslua_file_common.h"

View File

@ -24,6 +24,7 @@
* two files opened at the same time for the same Lua script (due to reload
* and other such events), the script can't just have one file state.
*/
#include "config.h"
#include "wslua_file_common.h"

View File

@ -16,8 +16,6 @@
/* See wslua_file_common.c for details */
#include "config.h"
#include "wslua.h"
#include <wiretap/wtap_opttypes.h>
#include <wiretap/wtap-int.h>

View File

@ -12,6 +12,7 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "wslua_file_common.h"

View File

@ -12,6 +12,7 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "wslua_file_common.h"
#include <lua.h>

View File

@ -13,6 +13,7 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "wslua_pinfo_common.h"

View File

@ -15,7 +15,6 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "wslua.h"

View File

@ -12,7 +12,6 @@
#ifndef __EXTCAP_H__
#define __EXTCAP_H__
#include <config.h>
#include <glib.h>

View File

@ -8,6 +8,7 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "etw_message.h"
#include <wsutil/wslog.h>

View File

@ -13,7 +13,6 @@
#define __W_ETW_MESSAGE_H__
#include <glib.h>
#include "config.h"
#include <windows.h>
#include <SDKDDKVer.h>

View File

@ -12,7 +12,6 @@
#ifndef __EXTCAP_BASE_H__
#define __EXTCAP_BASE_H__
#include "config.h"
#include <glib.h>
#include <glib/gprintf.h>

View File

@ -14,7 +14,6 @@
#include <glib.h>
#include <string.h>
#include <config.h>
#include "ui/iface_toolbar.h"
typedef enum {

View File

@ -14,7 +14,6 @@
#ifndef __MATE_H_
#define __MATE_H_
#include "config.h"
#define WS_LOG_DOMAIN "MATE"
#include <gmodule.h>

View File

@ -10,6 +10,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "mate.h"
#include <wsutil/ws_assert.h>

View File

@ -10,6 +10,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "mate.h"
/* appends the formatted string to the current error log */

View File

@ -11,6 +11,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include "mate.h"
#include "mate_util.h"
#include <wsutil/file_util.h>

View File

@ -16,6 +16,8 @@
* It is intended for this to be just the user interface to the module. ***
**************************************************************************/
#include "config.h"
#include "mate.h"
#include <epan/expert.h>

View File

@ -9,7 +9,6 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
int decode_syn(packet_info *pinfo, proto_tree *tree, PKT_INFO* pkt_info);
int decode_dcerpc(packet_info *pinfo, proto_tree *tree, PKT_INFO* pkt_info);

View File

@ -9,7 +9,6 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/prefs.h>
#include <epan/packet.h>

View File

@ -9,7 +9,6 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "config.h"
#include <epan/packet.h>
#include <epan/prefs.h>

View File

@ -10,7 +10,6 @@
#ifndef __IFACE_TOOLBAR_H__
#define __IFACE_TOOLBAR_H__
#include "config.h"
#ifdef __cplusplus
extern "C" {