mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove __cplusplus ifdefs
Since all source files are now C++, this is redundant. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9065bf8622
commit
03b910ee7f
55 changed files with 37 additions and 347 deletions
|
|
@ -2,22 +2,10 @@
|
|||
#ifndef MYGETTEXT_H
|
||||
#define MYGETTEXT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" const char *trGettext(const char *);
|
||||
static inline const char *translate(const char *, const char *arg)
|
||||
{
|
||||
return trGettext(arg);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* this is for the Qt based translations */
|
||||
extern const char *trGettext(const char *);
|
||||
#define translate(_context, arg) trGettext(arg)
|
||||
#define QT_TRANSLATE_NOOP(_context, arg) arg
|
||||
#define QT_TRANSLATE_NOOP3(_context, arg, _comment) arg
|
||||
|
||||
#endif
|
||||
|
||||
#endif // MYGETTEXT_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue