www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24615] New: ImportC can't import Python 3.12 header

https://issues.dlang.org/show_bug.cgi?id=24615

          Issue ID: 24615
           Summary: ImportC can't import Python 3.12 header
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: atila.neves gmail.com

------------
// foo.d
import python;
------------
------------
// python.c
#include <Python.h>
------------

% dmd -c -P-I/usr/include/python3.12 foo.d


In file included from <command-line>:
/usr/include/dlang/dmd/importc.h:101:8: warning: undefining "__has_feature"
  101 | #undef __has_feature
      |        ^~~~~~~~~~~~~
/usr/include/dlang/dmd/importc.h:104:8: warning: undefining "__has_extension"
  104 | #undef __has_extension
      |        ^~~~~~~~~~~~~~~
/usr/include/linux/types.h(12): Error: __int128 not supported
/usr/include/linux/types.h(13): Error: unsigned __int128 not supported

--
Jun 17