summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/symbian/fixed_stdlib.h
blob: 2346afe58c07f5e4d57b1815ef8d7259e1fa963f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the $MODULE$ of the Qt Toolkit.
**
** $TROLLTECH_DUAL_LICENSE$
**
****************************************************************************/

#ifndef FIXED_STDLIB_H
#define FIXED_STDLIB_H

// This hack fixes defect in Symbian stdlib.h. The original file
// does not work correctly when intermixing C and C++ (STL). Remove the hack
// when Open C / C++ team has fixed the defect.

// If _WCHAR_T_DECLARED is defined, undef it and store information that we
// need to revert the _WCHAR_T_DECLARED define after include
#   ifdef _WCHAR_T_DECLARED
#       define REVERT_WCHAR_T_DECLARED
#       undef _WCHAR_T_DECLARED
#   endif //_WCHAR_T_DECLARED

#include <stdlib.h>

// Revert _WCHAR_T_DECLARED if necessary
#   ifdef REVERT_WCHAR_T_DECLARED
#       define _WCHAR_T_DECLARED
#       undef REVERT_WCHAR_T_DECLARED
#   endif //REVERT_WCHAR_T_DECLARED

#endif