зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1431030 - Ignore the automatic formatting of the NS_NPAPIPLUGIN_CALLBACK definitions r=jimm
MozReview-Commit-ID: 2oTHhb2VBWX --HG-- extra : rebase_source : c49f8b2bdbd459c459d257c27a6fbf8588bcd130
This commit is contained in:
Родитель
e5687f9731
Коммит
a4b8b15778
|
@ -14,11 +14,14 @@
|
||||||
#include "mozilla/PluginLibrary.h"
|
#include "mozilla/PluginLibrary.h"
|
||||||
#include "mozilla/RefCounted.h"
|
#include "mozilla/RefCounted.h"
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
// See bug 1431030
|
||||||
#if defined(XP_WIN)
|
#if defined(XP_WIN)
|
||||||
#define NS_NPAPIPLUGIN_CALLBACK(_type, _name) _type (__stdcall * _name)
|
#define NS_NPAPIPLUGIN_CALLBACK(_type, _name) _type (__stdcall * _name)
|
||||||
#else
|
#else
|
||||||
#define NS_NPAPIPLUGIN_CALLBACK(_type, _name) _type (* _name)
|
#define NS_NPAPIPLUGIN_CALLBACK(_type, _name) _type (* _name)
|
||||||
#endif
|
#endif
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
typedef NS_NPAPIPLUGIN_CALLBACK(NPError, NP_GETENTRYPOINTS) (NPPluginFuncs* pCallbacks);
|
typedef NS_NPAPIPLUGIN_CALLBACK(NPError, NP_GETENTRYPOINTS) (NPPluginFuncs* pCallbacks);
|
||||||
typedef NS_NPAPIPLUGIN_CALLBACK(NPError, NP_PLUGININIT) (const NPNetscapeFuncs* pCallbacks);
|
typedef NS_NPAPIPLUGIN_CALLBACK(NPError, NP_PLUGININIT) (const NPNetscapeFuncs* pCallbacks);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче