Skip to content

Commit

Permalink
Fix problematic conditional build directives
Browse files Browse the repository at this point in the history
Replace unfortunate "#if HAVE_<feature>" directives with probably
intended "#ifdef HAVE_<feature>" forms, or compilation may break if
./configure defines a HAVE_<feautre> but empty.

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
  • Loading branch information
jkrzyszt committed May 1, 2012
1 parent da71e00 commit a603b8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd.c
Expand Up @@ -1990,7 +1990,7 @@ void command_help ( char *command )
display_gen_help(helpstate);
}

#if HAVE_FEATURE_RFXS
#ifdef HAVE_FEATURE_RFXS
if ( (list & HELP_STATE) || (list & HELP_RFXS) ) {
/* RFXSensor state commands */
printf("\n [RFXSensor state commands (H = Housecode, u = Single unit) - require heyu engine]\n");
Expand Down
2 changes: 1 addition & 1 deletion digimax.c
Expand Up @@ -427,7 +427,7 @@ char *translate_digimax ( unsigned char *buf, unsigned char *sunchanged, int *la
int show_digimax ( void )
{

#if HAVE_FEATURE_DMX
#ifdef HAVE_FEATURE_DMX
ALIAS *aliasp;
char hc;
int unit, index, temp, count = 0, maxlabel = 0;
Expand Down

0 comments on commit a603b8f

Please sign in to comment.