Skip to content

Commit

Permalink
[build] Add config.h inclusion in order to take alignment issues into…
Browse files Browse the repository at this point in the history
… account.
  • Loading branch information
jbnote committed Jan 14, 2008
1 parent 5103880 commit ebd8900
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bitarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */

/* read-only byte-aligned array */
typedef struct bytearray {
Expand Down
3 changes: 3 additions & 0 deletions bitstream_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
#include <glib.h>
#include <glib/gstdio.h>

/* For config.h */
#include "bitarray.h"

#undef HAVE_MMAP

#ifdef HAVE_MMAP
Expand Down
2 changes: 1 addition & 1 deletion xdl/xdl_lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pip { return PIP; }
"=="|"=>"|"=-"|"->" { return CONNECTION; }

[a-zA-Z0-9_\-]* { copy_and_return(IDENTIFIER); } /* Should do otherwise */
v[0-9]+.[0-9]+ { return VERSION; }
v[0-9]+.[0-9]+ { return NCDVERSION; }

<S_CONFIG>{
[ \t\n]+ /* eat up whitespace */
Expand Down
4 changes: 2 additions & 2 deletions xdl/xdl_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static int treat_design(parser_t *parser,
/* Bison declaration */
%token STRING
%token IDENTIFIER
%token VERSION
%token NCDVERSION
%token DESIGN

%token LUTID
Expand Down Expand Up @@ -278,7 +278,7 @@ input: /* empty */
/* Design */
design_name: STRING ;
part: IDENTIFIER ;
ncd_version: VERSION ;
ncd_version: NCDVERSION ;

device: IDENTIFIER ;
package: IDENTIFIER ;
Expand Down

0 comments on commit ebd8900

Please sign in to comment.