Skip to content

Commit

Permalink
Use C++ namespace wrappers for C stdlib includes
Browse files Browse the repository at this point in the history
To import C stdlib functions into the std namespace (i.e. to call
std::strcpy instead of strcpy), you must use '#include <cfoo>' instead of
'#include <foo.h>'.

This patch is necessary to compile on RHEL7.
  • Loading branch information
Michael Driscoll committed Aug 8, 2017
1 parent f817b9a commit 0589fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awsv4.hpp
@@ -1,8 +1,8 @@
#ifndef AWSV4_HPP
#define AWSV4_HPP

#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>

#include <stdexcept>
#include <algorithm>
Expand Down

0 comments on commit 0589fde

Please sign in to comment.