~ubuntu-branches/ubuntu/gutsy/egenix-mx-base/gutsy

« back to all changes in this revision

Viewing changes to mx/Queue/mxQueue/mx.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-01-16 11:29:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050116112914-aew4kizr198v3oib
Tags: 2.0.6-0ubuntu1
* New upstream version (python2.4 compatibility fix).
* Clean up package depenencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
  MAL_MEM_DEBUG -- enable malloc output (new,cnew,free,...) [mxstdlib.h]
17
17
 
18
18
  Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
19
 
  Copyright (c) 2000-2002, eGenix.com Software GmbH; mailto:info@egenix.com
 
19
  Copyright (c) 2000-2004, eGenix.com Software GmbH; mailto:info@egenix.com
20
20
  See the documentation for further copyright information or contact
21
21
  the author.
22
22
 
31
31
   Many thanks to all who have contributed to this list.
32
32
 
33
33
*/
34
 
#if (!defined(__GNUC__))
35
 
# if (defined(NeXT) || defined(sgi) || defined(_AIX) || (defined(__osf__) && defined(__DECC)) || defined(TrueCompaq64) || defined(__VMS))
36
 
#  define BAD_STATIC_FORWARD
 
34
#ifndef BAD_STATIC_FORWARD
 
35
# if (!defined(__GNUC__))
 
36
#  if (defined(NeXT) || defined(sgi) || defined(_AIX) || (defined(__osf__) && defined(__DECC)) || defined(TrueCompaq64) || defined(__VMS))
 
37
#   define BAD_STATIC_FORWARD
 
38
#  endif
37
39
# endif
38
40
#endif
39
41
 
398
400
/* --- Number macros ------------------------------------------------------ */
399
401
 
400
402
/* Test for PyFloat_AsDouble() compatible object */
401
 
#define PyFloat_Compatible(obj) \
402
 
        (obj->ob_type->tp_as_number->nb_float != NULL)
 
403
#define PyFloat_Compatible(obj)                                 \
 
404
        (PyInstance_Check(obj)                                  \
 
405
         ? PyObject_HasAttrString(obj, "__float__")             \
 
406
         : (obj->ob_type->tp_as_number->nb_float != NULL))
403
407
 
404
408
/* --- Text macros -------------------------------------------------------- */
405
409