#include <fstream>
#ifdef _WIN32
-#include "Shlwapi.h"
+# include <shlwapi.h>
#endif /* _WIN32 */
using namespace icinga;
return !empty;
}
+
+
+bool ConfigCompiler::IsAbsolutePath(const String& path)
+{
+#ifndef _WIN32
+ return (path.GetLength() > 0 && path[0] == '/');
+#else /* _WIN32 */
+ return !PathIsRelative(path.CStr());
+#endif /* _WIN32 */
+}
+
static bool HasZoneConfigAuthority(const String& zoneName);
- static inline bool IsAbsolutePath(const String& path) {
-#ifndef _WIN32
- return (path.GetLength() > 0 && path[0] == '/');
-#else
- return !PathIsRelative(path.CStr());
-#endif /* _WIN32 */
- }
-
private:
boost::promise<boost::shared_ptr<Expression> > m_Promise;
static void HandleIncludeZone(const String& relativeBase, const String& tag, const String& path, const String& pattern, const String& package, std::vector<Expression *>& expressions);
+ static bool IsAbsolutePath(const String& path);
+
public:
bool m_Eof;
int m_OpenBraces;