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:
parent
2c7d22dba2
commit
5f79503d67
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include "wslua_file_common.h"
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include "wslua_pinfo_common.h"
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include "wslua_file_common.h"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include "wslua_file_common.h"
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include "wslua_file_common.h"
|
||||
#include <lua.h>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include "wslua_pinfo_common.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "wslua.h"
|
||||
|
||||
|
|
1
extcap.h
1
extcap.h
|
@ -12,7 +12,6 @@
|
|||
#ifndef __EXTCAP_H__
|
||||
#define __EXTCAP_H__
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include "etw_message.h"
|
||||
#include <wsutil/wslog.h>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#define __W_ETW_MESSAGE_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include "config.h"
|
||||
|
||||
#include <windows.h>
|
||||
#include <SDKDDKVer.h>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#ifndef __EXTCAP_BASE_H__
|
||||
#define __EXTCAP_BASE_H__
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gprintf.h>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <glib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <config.h>
|
||||
#include "ui/iface_toolbar.h"
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#ifndef __MATE_H_
|
||||
#define __MATE_H_
|
||||
|
||||
#include "config.h"
|
||||
#define WS_LOG_DOMAIN "MATE"
|
||||
|
||||
#include <gmodule.h>
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "mate.h"
|
||||
#include <wsutil/ws_assert.h>
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
#include <epan/prefs.h>
|
||||
#include <epan/packet.h>
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "config.h"
|
||||
#include <epan/packet.h>
|
||||
#include <epan/prefs.h>
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#ifndef __IFACE_TOOLBAR_H__
|
||||
#define __IFACE_TOOLBAR_H__
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in New Issue