GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend.h
1
29#ifndef GPGFRONTEND_H_IN
30#define GPGFRONTEND_H_IN
31
32// standard headers
33#include <cstdint>
34#include <optional>
35#include <filesystem>
36
37#ifdef WINDOWS
38#include <winsock2.h>
39#include <windows.h>
40#endif
41
42
43// i18n support
44#include <libintl.h>
45#define _(String) gettext (String)
46#define gettext_noop(String) String
47#define N_(String) gettext_noop (String)
48
49
50// fix macro bugs in mingw
51#ifdef WINDOWS
52#include <clocale>
53#undef vsnprintf
54#undef sprintf
55#undef snprintf
56#endif
57
58
59// logging system
60#define ELPP_DEFAULT_LOGGING_FLAGS 8192
61#include <easylogging++.h>
62
63
64// build info
65#define PROJECT_NAME "GpgFrontend"
66#define OS_PLATFORM 1
67#define LOCALE_DIR ""
68
69
70// macros to find resource files
71#if defined(MACOS) && defined(RELEASE)
72#define RESOURCE_DIR(appDir) (appDir + "/../Resources/")
73#define RESOURCE_DIR_BOOST_PATH(appDir) (appDir / ".." / "Resources")
74#elif defined(LINUX) && defined(RELEASE)
75#define RESOURCE_DIR(appDir) (appDir + "/../share/")
76#define RESOURCE_DIR_BOOST_PATH(appDir) (appDir / ".." / "share")
77#else
78#define RESOURCE_DIR(appDir) (appDir)
79#define RESOURCE_DIR_BOOST_PATH(appDir) (appDir)
80#endif
81
82#endif // GPGFRONTEND_H_IN