--- a/sdl2-config.in
+++ b/sdl2-config.in
@@ -5,6 +5,7 @@
 
 # Calculate the canonical path of the prefix, relative to the folder of this script
 prefix=`cd -P -- "$bindir/@bin_prefix_relpath@" && printf '%s\n' "\`pwd -P\`"`
+prefix=$(cygpath -m "$prefix")
 exec_prefix=@exec_prefix@
 exec_prefix_set=no
 libdir=@libdir@
