Skip to content

Commit

Permalink
Fix Appveyor build: lib/hx509
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed May 28, 2017
1 parent 1b9a77e commit 76347f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/hx509/NTMakefile
@@ -1,6 +1,6 @@
########################################################################
#
# Copyright (c) 2009-2016, Secure Endpoints Inc.
# Copyright (c) 2009-2017, Secure Endpoints Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -192,7 +192,7 @@ $(OBJ)\sel-gram.c: sel-gram.y
$(YACC) -o $@ --defines=$(OBJ)\sel-gram.h sel-gram.y

$(OBJ)\sel-lex.c: sel-lex.l
$(LEX) -o$@ sel-lex.l
$(LEX) -P_hx509_sel_yy -o$@ sel-lex.l

all:: $(INCFILES) $(LIBHX509)

Expand Down
14 changes: 13 additions & 1 deletion lib/hx509/sel-gram.y
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008 Kungliga Tekniska Högskolan
* Copyright (c) 2017 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
Expand Down Expand Up @@ -39,6 +39,18 @@
#include <stdlib.h>
#include <hx_locl.h>

#if !defined(yylex)
#define yylex _hx509_sel_yylex
#define yywrap _hx509_sel_yywrap
#endif
#if !defined(yyparse)
#define yyparse _hx509_sel_yyparse
#define yyerror _hx509_sel_yyerror
#define yylval _hx509_sel_yylval
#define yychar _hx509_sel_yychar
#define yydebug _hx509_sel_yydebug
#define yynerrs _hx509_sel_yynerrs
#endif

%}

Expand Down
6 changes: 5 additions & 1 deletion lib/hx509/sel-lex.l
@@ -1,6 +1,6 @@
%{
/*
* Copyright (c) 2004, 2008 Kungliga Tekniska Högskolan
* Copyright (c) 2004 - 2017 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
Expand Down Expand Up @@ -120,6 +120,10 @@ handle_string(void)
return strdup(x);
}

#if !defined(yywrap)
#define yywrap _hx509_sel_yywrap
#endif

int
yywrap ()
{
Expand Down

0 comments on commit 76347f8

Please sign in to comment.