The .ipp suffix is for inlined template implementation code.
While at it, use #ifdef and #ifndef instead of #if defined().
-include_HEADERS = jansson.h jansson.hpp jansson-impl.hpp
+include_HEADERS = jansson.h jansson.hpp jansson.ipp
lib_LTLIBRARIES = libjansson.la
libjansson_la_SOURCES = \
// Jansson is free software; you can redistribute it and/or modify
// it under the terms of the MIT license. See LICENSE for details.
-#if !defined(JANSSON_HPP)
-#define JANSSON_HPP 1
+#ifndef JANSSON_HPP
+#define JANSSON_HPP
#include <string>
#include <ostream>
inline std::istream& operator>>(std::istream& is, json::Value& value);
// include implementation code
-#define IN_JANSSON_HPP 1
-#include "jansson-impl.hpp"
+#define IN_JANSSON_HPP
+#include "jansson.ipp"
#undef IN_JANSSON_HPP
#endif // defined(JANSSON_HPP)
// Jansson is free software; you can redistribute it and/or modify
// it under the terms of the MIT license. See LICENSE for details.
-#if !defined(IN_JANSSON_HPP)
-#error "jansson-impl.hpp may only by included from jansson.hpp"
+#ifndef IN_JANSSON_HPP
+#error "jansson.ipp may only be included from jansson.hpp"
#endif
namespace json {