Skip to content

Commit

Permalink
Make mythexp.h C safe for pink.{h,c}
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Dec 20, 2012
1 parent 0b974b6 commit 7d3d9f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/libs/libmyth/mythexp.h
@@ -1,13 +1,15 @@
#ifndef MYTHEXP_H_
#define MYTHEXP_H_

#ifdef __cplusplus
#include <QtCore/qglobal.h>

#if defined(MYTH_API) || defined(MPLUGIN_API)
# define MPUBLIC Q_DECL_EXPORT
#else
# define MPUBLIC Q_DECL_IMPORT
#endif
#endif /* __cplusplus */

#if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2)))
# define MHIDDEN __attribute__((visibility("hidden")))
Expand All @@ -19,4 +21,4 @@
# define MDEPRECATED
#endif

#endif // MYTHEXP_H_
#endif /* MYTHEXP_H_ */

0 comments on commit 7d3d9f6

Please sign in to comment.