Skip to content

Commit

Permalink
Fix up some include guards and inclusions of config.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
blast007 committed Jan 31, 2019
1 parent adf4aa2 commit e9cb790
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 15 deletions.
6 changes: 6 additions & 0 deletions include/bzsignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/

#ifndef __BZSIGNAL_H__
#define __BZSIGNAL_H__

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
Expand All @@ -32,6 +36,8 @@ SIG_PF bzSignal(int signo, SIG_PF func);
}
#endif

#endif // __BZSIGNAL_H__

/*
* Local Variables: ***
* mode: C++ ***
Expand Down
7 changes: 1 addition & 6 deletions include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@
#define BZF_COMMON_H

/* this should always be the very FIRST header */

#ifdef _DEVCPP /* the Dev-C++ build is acting very stubborn; this is (hopefully) -temporary- */
# include_next "config.h"
#else
# include "config.h"
#endif
#include "config.h"

#ifdef _WIN32
# undef NOMINMAX
Expand Down
4 changes: 2 additions & 2 deletions include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/

#include "config.h"

#ifndef __VERSION_H__
#define __VERSION_H__

#include "config.h"

#ifndef BZ_CONFIG_DIR_VERSION
#define BZ_CONFIG_DIR_VERSION "2.4"
#endif
Expand Down
5 changes: 0 additions & 5 deletions src/bzadmin/CursesMenu.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/

/* Dev-C++ builds successfully if sstream is included before CursesMenu.h */
#ifdef _DEVCPP
# include <sstream>
#endif

/* interface header */
#include "CursesMenu.h"

Expand Down
2 changes: 0 additions & 2 deletions src/common/md5.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* Still in the public domain.
*/

#include "config.h"

/* for memcpy() */
#include <string.h>
/* for stupid systems */
Expand Down

0 comments on commit e9cb790

Please sign in to comment.