Skip to content

Commit

Permalink
cfg-read: conditionally call shcodecs_resources()
Browse files Browse the repository at this point in the history
  • Loading branch information
kfish committed Apr 18, 2010
1 parent 0bdd77b commit 5c3dd11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cfg-read.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Copyright (C) 2009 Conrad Parker
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -39,8 +43,10 @@ cfg_read_block_end (const char * name, void * user_data)
cfg->resources = list_join (cfg->resources, statictext_resources (cfg->block_dict));
} else if (!strncmp (name, "Stdin", 5)) {
cfg->resources = list_join (cfg->resources, fdstream_resources (cfg->block_dict));
#ifdef HAVE_SHCODECS
} else if (!strncmp (name, "SHRecord", 8)) {
cfg->resources = list_join (cfg->resources, shrecord_resources (cfg->block_dict));
#endif
}

dictionary_delete (cfg->block_dict);
Expand Down

0 comments on commit 5c3dd11

Please sign in to comment.