Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jul 27, 2024
1 parent 540239c commit 41875f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile-variables
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ CXXFLAGS := --std=c++20 -O3 -Iinclude
else
CXXFLAGS := --std=c++17 -O3 -Iinclude
endif
CXXFLAGS += $(shell pkg-config --cflags getargv)

EXTRA_CXXFLAGS := -pedantic-errors -Weverything -Wno-c++98-compat -Wno-pre-c++20-compat-pedantic -Wno-poison-system-directories
LDFLAGS += -Llib -fvisibility=default -fPIC
LDLIBS += -lgetargv
LDLIBS += $(shell pkg-config --libs getargv)

LIB_SHORT_NAME = getargv++
LIB_NAME = lib$(LIB_SHORT_NAME)
Expand Down
2 changes: 2 additions & 0 deletions include/libgetargv++.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
namespace Getargv {
namespace ffi {
#include <libgetargv.h>
using errno_t = ::errno_t;
using uint = ::uint;
} // namespace ffi

/** \brief This struct provides an iterable and printable representation of
Expand Down

0 comments on commit 41875f3

Please sign in to comment.