office-gobmx/soltools/mkdepend/collectdircontent.hxx
Noel Grandin 2087484c65 use consistent #define checks for the Windows platform
stage 2 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro

In this stage we focus on replacing usage of the WIN macro

Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84
Reviewed-on: https://gerrit.libreoffice.org/22393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-17 11:33:57 +00:00

57 lines
1.2 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#ifndef INCLUDED_SOLTOOLS_MKDEPEND_COLLECTDIRCONTENT_HXX
#define INCLUDED_SOLTOOLS_MKDEPEND_COLLECTDIRCONTENT_HXX
#if defined __cplusplus
#include <set>
#include <map>
#include <string>
#if defined(_WIN32)
#include <windows.h>
#include <algorithm>
#else
#include <dirent.h>
#endif // defined( WNT )
#include <iostream>
typedef std::set<std::string> DirContent;
typedef std::map<std::string, DirContent> DirMap;
typedef DirMap::value_type EntriesPair;
typedef std::pair<std::string, std::string> PathFilePair;
struct IncludesCollection {
private:
DirMap allIncludes;
static PathFilePair split_path(const std::string& filePath);
void add_to_collection(const std::string& dirPath);
public:
bool exists(std::string filePath);
};
#else
struct IncludesCollection;
#endif
#if defined __cplusplus
extern "C" {
#endif
struct IncludesCollection * create_IncludesCollection(void);
void delete_IncludesCollection(struct IncludesCollection *);
int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath);
#if defined __cplusplus
}
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */