Skip to content

Commit

Permalink
Fixed example build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Aug 8, 2020
1 parent e0e5898 commit cf084e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#CXX = clang++
CXXFLAGS = -std=c++14 -I.. -Wall -Wextra -pthread
CXXFLAGS = -std=c++11 -I.. -Wall -Wextra -pthread

OPENSSL_DIR = /usr/local/opt/openssl
OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR)/include -L$(OPENSSL_DIR)/lib -lssl -lcrypto
Expand Down
2 changes: 1 addition & 1 deletion example/simplecli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int main(void) {
auto scheme_host_port = "http://localhost:8080";
#endif

auto res = httplib::Client2(scheme_host_port).Get("/hi");
auto res = httplib::Client(scheme_host_port).Get("/hi");

if (res) {
cout << res->status << endl;
Expand Down
2 changes: 1 addition & 1 deletion example/ssecli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using namespace std;

int main(void) {
httplib::Client2("http://localhost:1234")
httplib::Client("http://localhost:1234")
.Get("/event1", [&](const char *data, size_t data_length) {
std::cout << string(data, data_length);
return true;
Expand Down

0 comments on commit cf084e1

Please sign in to comment.