generatorrunnermacros.h | generatorrunnermacros.h | |||
---|---|---|---|---|
/* | /* | |||
* This file is part of the API Extractor project. | * This file is part of the API Extractor project. | |||
* | * | |||
* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). | * Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). | |||
* | * | |||
* Contact: PySide team <contact@pyside.org> | * Contact: PySide team <contact@pyside.org> | |||
* | * | |||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU General Public License | * modify it under the terms of the GNU General Public License | |||
* version 2 as published by the Free Software Foundation. | * version 2 as published by the Free Software Foundation. | |||
* | * | |||
* This program is distributed in the hope that it will be useful, but | * This program is distributed in the hope that it will be useful, but | |||
* WITHOUT ANY WARRANTY; without even the implied warranty of | * WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
skipping to change at line 29 | skipping to change at line 29 | |||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |||
* 02110-1301 USA | * 02110-1301 USA | |||
* | * | |||
*/ | */ | |||
#ifndef GENERATORRUNNERMACROS_H | #ifndef GENERATORRUNNERMACROS_H | |||
#define GENERATORRUNNERMACROS_H | #define GENERATORRUNNERMACROS_H | |||
// GENRUNNER_API is used for the public API symbols. | // GENRUNNER_API is used for the public API symbols. | |||
#if defined _WIN32 || defined __CYGWIN__ | #if defined _WIN32 || defined __CYGWIN__ | |||
#define GENRUNNER_EXPORT __declspec(dllexport) | #define GENRUNNER_EXPORT __declspec(dllexport) | |||
#if GENRUNNER_BUILD | #if GENRUNNER_EXPORTS | |||
#define GENRUNNER_API GENRUNNER_EXPORT | ||||
#else | ||||
#define GENRUNNER_API __declspec(dllimport) | ||||
#endif | ||||
// dont worry about deprecated functions under windows | ||||
#define GENRUNNER_DEPRECATED | ||||
#else | ||||
#define GENRUNNER_EXPORT __attribute__ ((visibility("default"))) | ||||
#if __GNUC__ >= 4 | ||||
#define GENRUNNER_API GENRUNNER_EXPORT | #define GENRUNNER_API GENRUNNER_EXPORT | |||
#else | ||||
#define GENRUNNER_API | ||||
#endif | #endif | |||
#define GENRUNNER_DEPRECATED __attribute__ ((deprecated)) | #elif __GNUC__ >= 4 | |||
#define GENRUNNER_EXPORT __attribute__ ((visibility("default"))) | ||||
#define GENRUNNER_API GENRUNNER_EXPORT | ||||
#endif | #endif | |||
#ifndef GENRUNNER_API | ||||
#define GENRUNNER_API | ||||
#endif | ||||
#endif | #endif | |||
End of changes. 5 change blocks. | ||||
15 lines changed or deleted | 9 lines changed or added | |||