Skip to content

Commit

Permalink
Removed afxres.h dependancy from Win32 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleehammer committed Oct 11, 2008
1 parent 02c13ab commit bbb51c1
Showing 1 changed file with 15 additions and 68 deletions.
83 changes: 15 additions & 68 deletions src/pyodbc.rc
@@ -1,56 +1,18 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
// This was a Microsoft Visual C++ generated resource script, but I've hand modified it to
// remove the afxres.h include. Apparently Visual Studio 2008 Express (used to build the
// Python 2.6 version) does not include afxres.h which is part of MFC. This will probably
// not be editable in the Visual Studio resource editor.

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
#include <winres.h>
#include "resource.h"

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#define STRINGIZER(version) #version
#define PRODUCT_VERSION_STRING(major,minor) STRINGIZER(major) "." STRINGIZER(minor)
#define FILE_VERSION_STRING(major,minor,micro,build) STRINGIZER(major) "." STRINGIZER(minor) "." STRINGIZER(micro) "." STRINGIZER(build)

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION PYODBC_MAJOR,PYODBC_MINOR,PYODBC_MICRO,PYODBC_BUILD
Expand All @@ -69,32 +31,17 @@ BEGIN
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "ODBC DB API 2.0 Module"
VALUE "FileVersion", "PYODBC_MAJOR,PYODBC_MINOR,PYODBC_MICRO,PYODBC_BUILD"
VALUE "InternalName", "pyodbc"
VALUE "Copyright", "Copyright 20008 Michael Kleehammer"
VALUE "ProductName", "ODBC DB API 2.0 Module"
VALUE "ProductVersion", PRODUCT_VERSION_STRING(PYODBC_MAJOR,PYODBC_MINOR)
VALUE "FileDescription", "ODBC DB API 2.0 Module"
VALUE "FileVersion", FILE_VERSION_STRING(PYODBC_MAJOR,PYODBC_MINOR,PYODBC_MICRO,PYODBC_BUILD)
VALUE "InternalName", "pyodbc"
VALUE "OriginalFilename", "pyodbc.pyd"
VALUE "ProductName", "ODBC DB API 2.0 Module"
VALUE "ProductVersion", "2.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END

#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

0 comments on commit bbb51c1

Please sign in to comment.