Description: |
Hello,
Commit f0385027e9ba256e adds definition of "Tcl_Size" type if compiling with Tcl <= 8.6.
I wonder if this definition could also be defined if compiling with Tcl = 8.7.
I build my code for test against last published version of Tcl9 and Tcl8.7. On Tcl8.7a5, it seems that Tcl_Size is not defined as I get the following error:
envmodules.c: In function ‘Envmodules_GetFilesInDirectoryObjCmd’:
envmodules.c:80:4: error: unknown type name ‘Tcl_Size’; did you mean ‘Tcl_Time’?
80 | Tcl_Size dirlen;
| ^~~~~~~~
| Tcl_Time
It would be wonderful to also have the type defined on Tcl8.7, as I will be able to completely drop some pragma, needed otherwise to port to Tcl9:
-#if TCL_MAJOR_VERSION < 9
- int dirlen;
-#else
Tcl_Size dirlen;
-#endif
Regards,
Xavier
|