Skip to content

Commit

Permalink
Merge pull request #29 from wsbu/feature/fix-err_h-header
Browse files Browse the repository at this point in the history
Fix `err.h` inclusion to only be used on Linux
  • Loading branch information
tomghuang authored Mar 15, 2019
2 parents aed5c65 + bd9b319 commit 2aed411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ArgTable3(ConanFile):
name = 'argtable3'
description = 'A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.'
url = 'https://github.com/argtable/argtable3'
version = tools.load('version.txt').strip() + '-2'
version = tools.load('version.txt').strip() + '-3'
license = 'BSD 3-Clause'
settings = 'os', 'compiler', 'build_type', 'arch'
options = {
Expand Down
2 changes: 1 addition & 1 deletion src/argtable3.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ static const char illoptstring[] = "unknown option -- %s";



#ifdef _WIN32
#if !defined(__linux__)
/* Windows needs warnx(). We change the definition though:
* 1. (another) global is defined, opterrmsg, which holds the error message
* 2. errors are always printed out on stderr w/o the program name
Expand Down

0 comments on commit 2aed411

Please sign in to comment.