File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -546,10 +546,17 @@ internal unsafe static extern void
546
546
internal unsafe static extern IntPtr
547
547
PyGILState_GetThisThreadState( ) ;
548
548
549
+ #if ( PYTHON32 || PYTHON33 || PYTHON34 )
550
+ [ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
551
+ ExactSpelling = true , CharSet = CharSet . Ansi ) ]
552
+ public unsafe static extern int
553
+ Py_Main( int argc , [ MarshalAsAttribute ( UnmanagedType . LPArray , ArraySubType = UnmanagedType . LPWStr ) ] string [ ] argv) ;
554
+ #else
549
555
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
550
556
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
551
557
public unsafe static extern int
552
558
Py_Main ( int argc , string [ ] argv ) ;
559
+ #endif
553
560
554
561
[ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
555
562
ExactSpelling = true , CharSet = CharSet . Ansi ) ]
You can’t perform that action at this time.
0 commit comments