Windows: Debug builds create the same .dll file name as non-debug
authorPeter Stuge <peter@stuge.se>
Tue, 10 May 2011 06:36:32 +0000 (08:36 +0200)
committerPeter Stuge <peter@stuge.se>
Mon, 13 Jun 2011 20:06:30 +0000 (22:06 +0200)
Thanks to Pete for pointing this out!

libusb/libusb-1.0.rc.in

index 22c61b2..81d46ce 100644 (file)
@@ -7,12 +7,6 @@
  */
 #include "winresrc.h"
 
-#ifdef _DEBUG
-#define VER_ORIGINALFILENAME_STR "libusb-1.0_debug.dll\0"
-#else
-#define VER_ORIGINALFILENAME_STR "libusb-1.0.dll\0"
-#endif
-
 VS_VERSION_INFO VERSIONINFO
  FILEVERSION @LIBUSB_VERSION_MAJOR@,@LIBUSB_VERSION_MINOR@,@LIBUSB_VERSION_MICRO@,0
  PRODUCTVERSION @LIBUSB_VERSION_MAJOR@,@LIBUSB_VERSION_MINOR@,@LIBUSB_VERSION_MICRO@,0
@@ -37,7 +31,7 @@ BEGIN
                        VALUE "InternalName", "libusb\0"
                        VALUE "LegalCopyright", "See individual source files, GNU LGPL v2.1 or later.\0"
                        VALUE "LegalTrademarks", "http://www.gnu.org/licenses/lgpl-2.1.html\0"
-                       VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
+                       VALUE "OriginalFilename", "libusb-1.0.dll\0"
                        VALUE "PrivateBuild", "\0"
                        VALUE "ProductName", "libusb-1.0\0"
                        VALUE "ProductVersion", "@PACKAGE_VERSION@"