With CMake, define WANT_PACKET_EDITOR in config.h.

Just as we do with autotools and nmake, define it in config.h, so it's
defined the same for every single file, rather than defining it in one
particular directory's Makefiles, so that it's defined for some code but
not all.

Change-Id: Ic41cd10f2b502e0be76c134cbeaad94dff7623f8
Reviewed-on: https://code.wireshark.org/review/4891
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-10-20 22:29:11 -07:00
parent 8dd032e84a
commit 7522497b67
2 changed files with 3 additions and 6 deletions

View File

@ -371,6 +371,9 @@
/* Define if we have QtWinExtras */
/* #cmakedefine QT_WINEXTRAS_LIB 1 */
/* Support for packet editor */
#cmakedefine WANT_PACKET_EDITOR 1
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#cmakedefine WORDS_BIGENDIAN 1

View File

@ -235,12 +235,6 @@ else()
)
endif()
if (WANT_PACKET_EDITOR)
add_definitions(
-DWANT_PACKET_EDITOR
)
endif()
if(WIN32)
set(PLATFORM_UI_SRC
capture_if_details_dlg_win32.c