[gimp/gimp-2-10] plug-ins: remove unnecessary Windows specific code in tinyscheme



commit db236dcff84c022a4cf11a5fbd0115ad541274db
Author: Jacob Boerema <jgboerema gmail com>
Date:   Tue May 17 17:12:35 2022 -0400

    plug-ins: remove unnecessary Windows specific code in tinyscheme
    
    Removal of the snprintf define was also part of the UCRT Windows patch
    in MINGW. Although it builds fine without this change, there is no need
    anymore to redefine snprintf. In addition, I seem to remember that
    _snprintf had a shortcoming.
    
    So let's remove the Windows specific code, since it works fine without it.
    
    (cherry picked from commit e268d38fb1f97d53345b13aa66a4881aff9a5945)

 plug-ins/script-fu/tinyscheme/scheme.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/plug-ins/script-fu/tinyscheme/scheme.c b/plug-ins/script-fu/tinyscheme/scheme.c
index d84f631c0e..ff73801738 100644
--- a/plug-ins/script-fu/tinyscheme/scheme.c
+++ b/plug-ins/script-fu/tinyscheme/scheme.c
@@ -28,12 +28,6 @@
 #if HAVE_UNISTD_H
 # include <unistd.h>
 #endif
-#ifdef WIN32
-# include <io.h>
-#endif
-#ifdef WIN32
-#define snprintf _snprintf
-#endif
 #if USE_DL
 # include "dynload.h"
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]