diff --git a/src/interfaces/ecpg/compatlib/.gitignore b/src/interfaces/ecpg/compatlib/.gitignore
index 926385c6b97eb328b78121a80100f5f009077e1e..6eb8a0dc06996126a21df9bfcafc0e0190ce6e4c 100644
--- a/src/interfaces/ecpg/compatlib/.gitignore
+++ b/src/interfaces/ecpg/compatlib/.gitignore
@@ -1,3 +1,4 @@
 /compatlib.def
 /blibecpg_compatdll.def
 /exports.list
+/snprintf.c
diff --git a/src/interfaces/ecpg/ecpglib/.gitignore b/src/interfaces/ecpg/ecpglib/.gitignore
index 351f43775e88f429366baa689272aa6144d3bae6..8ef6401dd0ebc31acc061303cc2f1f11d99f04f3 100644
--- a/src/interfaces/ecpg/ecpglib/.gitignore
+++ b/src/interfaces/ecpg/ecpglib/.gitignore
@@ -1,8 +1,10 @@
 /ecpglib.def
 /blibecpgdll.def
 /exports.list
-
 /path.c
 /pgstrcasecmp.c
+/snprintf.c
 /strlcpy.c
 /thread.c
+/win32setlocale.c
+/isinf.c
diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile
index 2079f9160111a27fd11da5c42c58511d22cc76f3..2f3f652e66e40fd422e54a750ef20c2f739263ed 100644
--- a/src/interfaces/ecpg/ecpglib/Makefile
+++ b/src/interfaces/ecpg/ecpglib/Makefile
@@ -76,6 +76,6 @@ uninstall: uninstall-lib
 
 clean distclean: clean-lib
 	rm -f $(OBJS)
-	rm -f path.c pgstrcasecmp.c snprintf.c strlcpy.c thread.c win32setlocale.c
+	rm -f path.c pgstrcasecmp.c snprintf.c strlcpy.c thread.c win32setlocale.c isinf.c
 
 maintainer-clean: distclean maintainer-clean-lib
diff --git a/src/interfaces/ecpg/pgtypeslib/.gitignore b/src/interfaces/ecpg/pgtypeslib/.gitignore
index 4ee58ea957eed2d6b40c2b57ae2fca40f8509284..fbcd68d7d3efd22a7116cc8e3bf31d119a3a7fa8 100644
--- a/src/interfaces/ecpg/pgtypeslib/.gitignore
+++ b/src/interfaces/ecpg/pgtypeslib/.gitignore
@@ -1,5 +1,6 @@
 /pgtypeslib.def
 /blibpgtypesdll.def
 /exports.list
-
 /pgstrcasecmp.c
+/rint.c
+/snprintf.c