diff options
author | Patrick Monnerat <[email protected]> | 2020-01-29 17:07:54 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2020-02-17 11:36:14 +0300 |
commit | 71d6d42e971fd9d15e896209fffbc062b467409b (patch) | |
tree | 929d0e70d9d812f7d0da79dd7cb7f3d7ea34d262 /src/caja-python.h | |
parent | eb768a00668092ab400cb23ee749b3c83adb8e8b (diff) | |
download | python-caja-71d6d42e971fd9d15e896209fffbc062b467409b.tar.bz2 python-caja-71d6d42e971fd9d15e896209fffbc062b467409b.tar.xz |
Get rid of commons
See https://gcc.gnu.org/gcc-10/porting_to.html#common
Diffstat (limited to 'src/caja-python.h')
-rw-r--r-- | src/caja-python.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/caja-python.h b/src/caja-python.h index 28b95e2..4cc47e9 100644 --- a/src/caja-python.h +++ b/src/caja-python.h @@ -26,6 +26,12 @@ #include <glib/gprintf.h> #include <Python.h> +#if defined(NO_IMPORT) +#define CAJA_PYTHON_VAR_DECL extern +#else +#define CAJA_PYTHON_VAR_DECL +#endif + typedef enum { CAJA_PYTHON_DEBUG_MISC = 1 << 0, } CajaPythonDebug; @@ -40,37 +46,37 @@ extern CajaPythonDebug caja_python_debug; g_printf("%s: entered " x "\n", __FUNCTION__, y); } -PyTypeObject *_PyGtkWidget_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyGtkWidget_Type; #define PyGtkWidget_Type (*_PyGtkWidget_Type) -PyTypeObject *_PyCajaColumn_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaColumn_Type; #define PyCajaColumn_Type (*_PyCajaColumn_Type) -PyTypeObject *_PyCajaColumnProvider_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaColumnProvider_Type; #define PyCajaColumnProvider_Type (*_PyCajaColumnProvider_Type) -PyTypeObject *_PyCajaInfoProvider_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaInfoProvider_Type; #define PyCajaInfoProvider_Type (*_PyCajaInfoProvider_Type) -PyTypeObject *_PyCajaLocationWidgetProvider_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaLocationWidgetProvider_Type; #define PyCajaLocationWidgetProvider_Type (*_PyCajaLocationWidgetProvider_Type) -PyTypeObject *_PyCajaMenu_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaMenu_Type; #define PyCajaMenu_Type (*_PyCajaMenu_Type) -PyTypeObject *_PyCajaMenuItem_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaMenuItem_Type; #define PyCajaMenuItem_Type (*_PyCajaMenuItem_Type) -PyTypeObject *_PyCajaMenuProvider_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaMenuProvider_Type; #define PyCajaMenuProvider_Type (*_PyCajaMenuProvider_Type) -PyTypeObject *_PyCajaPropertyPage_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaPropertyPage_Type; #define PyCajaPropertyPage_Type (*_PyCajaPropertyPage_Type) -PyTypeObject *_PyCajaPropertyPageProvider_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaPropertyPageProvider_Type; #define PyCajaPropertyPageProvider_Type (*_PyCajaPropertyPageProvider_Type) -PyTypeObject *_PyCajaOperationHandle_Type; +CAJA_PYTHON_VAR_DECL PyTypeObject *_PyCajaOperationHandle_Type; #define PyCajaOperationHandle_Type (*_PyCajaOperationHandle_Type) #endif /* CAJA_PYTHON_H */ |