]> WPIA git - cassiopeia.git/blobdiff - src/util.h
chg: Make the signer actively reject MD5 and SHA1
[cassiopeia.git] / src / util.h
old mode 100644 (file)
new mode 100755 (executable)
index 90365bd..529820a
@@ -15,9 +15,14 @@ std::pair<bool, std::time_t> parseYearInterval( std::time_t t, const std::string
 
 std::unique_ptr<std::ofstream> openLogfile( const std::string &name );
 
+#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ > 8)
+#else
+namespace std{
 template<typename T, typename... Args>
 std::unique_ptr<T> make_unique( Args&&... args ) {
     return std::unique_ptr<T>( new T( std::forward<Args>(args)... ));
 }
+}
+#endif
 
 std::string timestamp();