forked from osmocom/wireshark
Include config.h only from .c files.
This avoids a warning building epan.c which includes both config.h and wslua.h (duplicate defines from config.h) svn path=/trunk/; revision=36751
This commit is contained in:
parent
09dc5526dc
commit
43851d797d
|
@ -26,6 +26,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "wslua.h"
|
||||
#include <epan/dissectors/packet-frame.h>
|
||||
#include <epan/nstime.h>
|
||||
|
|
|
@ -56,6 +56,9 @@ print H "extern void wslua_register_classes(lua_State* L);\n";
|
|||
print H "extern void wslua_register_functions(lua_State* L);\n";
|
||||
print H "\n\n";
|
||||
|
||||
print C "#ifdef HAVE_CONFIG_H\n";
|
||||
print C '#include "config.h"' . "\n";
|
||||
print C "#endif\n\n";
|
||||
|
||||
print C '#include "wslua.h"' . "\n\n";
|
||||
print C "void wslua_register_classes(lua_State* L) { \n";
|
||||
|
|
|
@ -155,6 +155,10 @@ print CFILE <<"HEADER";
|
|||
/* This file is autogenerated from ./taps by ./make-taps.pl */
|
||||
/* DO NOT EDIT! */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "wslua.h"
|
||||
|
||||
HEADER
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
#ifndef _PACKET_LUA_H
|
||||
#define _PACKET_LUA_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <glib.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Dumper Saving capture files */
|
||||
|
||||
#include "wslua.h"
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Field Obtaining dissection data */
|
||||
|
||||
#include "wslua.h"
|
||||
|
|
|
@ -24,6 +24,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "wslua.h"
|
||||
|
||||
/* WSLUA_MODULE Gui GUI support */
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Listener Post-dissection packet analysis */
|
||||
|
||||
#include "wslua.h"
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Pinfo Obtaining packet information */
|
||||
|
||||
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Proto Functions for writing dissectors */
|
||||
|
||||
#include "wslua.h"
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Tree Adding information to the dissection tree */
|
||||
|
||||
#include "wslua.h"
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Tvb Functions for handling packet data */
|
||||
|
||||
#include "wslua.h"
|
||||
|
|
|
@ -24,6 +24,10 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* WSLUA_MODULE Utility Utility Functions */
|
||||
|
||||
#include "wslua.h"
|
||||
|
|
Loading…
Reference in New Issue