| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fbd1a0c commit 290e5bd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,15 +28,9 @@ typedef struct { | |||
| 28 | 28 | Tcl_Interp* interp; | |
| 29 | 29 | } TkappObject; | |
| 30 | 30 | ||
| 31 | - // const on win32 | ||
| 32 | - #ifdef WIN32 | ||
| 33 | - #define argv_t const char | ||
| 34 | - #else | ||
| 35 | - #define argv_t char | ||
| 36 | - #endif | ||
| 37 | 31 | static int | |
| 38 | 32 | PyAggImagePhoto(ClientData clientdata, Tcl_Interp* interp, | |
| 39 | - int argc, argv_t **argv) | ||
| 33 | + int argc, char **argv) | ||
| 40 | 34 | { | |
| 41 | 35 | Tk_PhotoHandle photo; | |
| 42 | 36 | Tk_PhotoImageBlock block; | |
@@ -130,7 +124,8 @@ _tkinit(PyObject* self, PyObject* args) | |||
| 130 | 124 | ||
| 131 | 125 | /* This will bomb if interp is invalid... */ | |
| 132 | 126 | ||
| 133 | - Tcl_CreateCommand(interp, "PyAggImagePhoto", PyAggImagePhoto, | ||
| 127 | + Tcl_CreateCommand(interp, "PyAggImagePhoto", | ||
| 128 | + (Tcl_CmdProc *) PyAggImagePhoto, | ||
| 134 | 129 | (ClientData) 0, (Tcl_CmdDeleteProc*) NULL); | |
| 135 | 130 | ||
| 136 | 131 | Py_INCREF(Py_None); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments