Panda3D
direct
src
dcparser
dcPython.h
1
// Filename: dcPython.h
2
// Created by: drose (22Jun04)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef DCPYTHON_H
16
#define DCPYTHON_H
17
18
// The only purpose of this file is to serve as a common place to put
19
// the nonsense associated with #including <Python.h>.
20
21
#ifdef HAVE_PYTHON
22
23
#undef _POSIX_C_SOURCE
24
#include <Python.h>
25
26
// Python 2.5 adds Py_ssize_t; earlier versions don't have it.
27
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
28
typedef
int
Py_ssize_t;
29
#define PY_SSIZE_T_MAX INT_MAX
30
#define PY_SSIZE_T_MIN INT_MIN
31
#endif
32
33
// Several interfaces in this module that use Python also require
34
// these header files, so we might as well pick them up too.
35
#include "datagram.h"
36
#include "datagramIterator.h"
37
38
#endif // HAVE_PYTHON
39
40
#endif
Generated on Wed May 17 2017 23:38:53 for Panda3D by
1.8.13