Creating a patch for Windows

I want to create a header patch to fix my appveyor build. I used WinMerge to create the following file:

--- C:/Qt/5.3/mingw482_32/include/QtGui/qopengl.h   Thu Jun 19 11:08:06 2014
+++ C:/Qt/5.3/mingw482_32/include/QtGui/qopengl2.h  Sat Nov 08 11:20:32 2014
@@ -49,6 +49,7 @@
// Windows always needs this to ensure that APIENTRY gets defined
 #if defined(Q_OS_WIN)
 # include <QtCore/qt_windows.h>
+# undef MemoryBarrier
 #endif

 // Note: Mac OSX is a "controlled platform" for OpenGL ABI so we

      

When I run the patch command, I get the following output:

C:\Users\Martin\dev\TravisTest>patch -u patch_qopengl c:\Qt\5.3\mingw482_32\include\QtGui\qopengl.h
patch: **** Only garbage was found in the patch input.

      

What's wrong?

+3
windows patch


source to share


No one has answered this question yet

Check out similar questions:

2453
How do I install pip on Windows?
2195
Is there an equivalent to "which" on the Windows command line?
1975
How do I know which process is listening on a port on Windows?
1141
How can I develop for iPhone using Windows development machine?
1092
Create a git patch for a specific commit
973
Ignoring directories in Git repos on Windows
951
Node.js / Windows Error: ENOENT, stat 'C: \ Users \ RT \ AppData \ Roaming \ npm'
766
How do I run two commands on the same line in Windows CMD?
467
TortoiseSVN icons not showing under Windows 7
122
How do I apply a diff patch on Windows?



All Articles
Loading...
X
Show
Funny
Dev
Pics