@@ -1563,27 +1563,11 @@ internal static IntPtr PyString_FromStringAndSize(string value, int length)
1563
1563
}
1564
1564
}
1565
1565
1566
- #if ( PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36 )
1567
1566
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl,
1568
1567
ExactSpelling = true, CharSet = CharSet . Unicode ) ]
1569
1568
internal unsafe static extern IntPtr
1570
1569
PyUnicode_FromStringAndSize( IntPtr value , int size ) ;
1571
- #elif ( UCS2 )
1572
- [ DllImport( Runtime . dll , CallingConvention = CallingConvention . Cdecl,
1573
- EntryPoint = "PyUnicodeUCS2_FromStringAndSize ",
1574
- ExactSpelling = true, CharSet = CharSet . Unicode ) ]
1575
- internal unsafe static extern IntPtr
1576
- PyUnicode_FromStringAndSize( IntPtr value , int size ) ;
1577
- #else
1578
- [ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl,
1579
- EntryPoint = "PyUnicodeUCS4_FromStringAndSize ",
1580
- ExactSpelling = true, CharSet = CharSet . Ansi ) ]
1581
- internal unsafe static extern IntPtr
1582
- PyUnicode_FromStringAndSize( IntPtr value , int size ) ;
1583
- #endif
1584
-
1585
- #else // Python2x
1586
-
1570
+ #elif PYTHON2
1587
1571
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl,
1588
1572
ExactSpelling = true, CharSet = CharSet . Ansi ) ]
1589
1573
internal unsafe static extern IntPtr
0 commit comments