File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 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
546546 internal unsafe static extern IntPtr
547547 PyGILState_GetThisThreadState( ) ;
548548
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
549555 [ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
550556 ExactSpelling = true , CharSet = CharSet . Ansi ) ]
551557 public unsafe static extern int
552558 Py_Main ( int argc , string [ ] argv ) ;
559+ #endif
553560
554561 [ DllImport ( Runtime . dll , CallingConvention = CallingConvention . Cdecl ,
555562 ExactSpelling = true , CharSet = CharSet . Ansi ) ]
You can’t perform that action at this time.
0 commit comments