mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
c0791ad85e
GRIDMATRIX, MAXICODE, MICROPDF417, PDF417, QRCODE, ULTRA DOTCODE: use pre-calculated generator poly coeffs in Reed-Solomon for performance improvement PDF417/MICROPDF417: use common routine pdf417_initial() GUI: code lines <= 118, shorthand widget_obj(), shorten calling upcean_addon_gap(), upcean_guard_descent() various backend: var name debug -> debug_print
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/* Sed: http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/versions.asp */
|
|
#if defined (_WIN32) && (defined(_USRDLL) || defined(DLL_EXPORT) || defined(PIC))
|
|
#include <windows.h>
|
|
#include <shlwapi.h>
|
|
#include "zintconfig.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
__declspec(dllexport) HRESULT DllGetVersion (DLLVERSIONINFO2* pdvi);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
HRESULT DllGetVersion (DLLVERSIONINFO2* pdvi)
|
|
{
|
|
if (!pdvi || (sizeof(*pdvi) != pdvi->info1.cbSize))
|
|
return (E_INVALIDARG);
|
|
|
|
pdvi->info1.dwMajorVersion = ZINT_VERSION_MAJOR;
|
|
pdvi->info1.dwMinorVersion = ZINT_VERSION_MINOR;
|
|
pdvi->info1.dwBuildNumber = ZINT_VERSION_RELEASE;
|
|
pdvi->info1.dwPlatformID = DLLVER_PLATFORM_WINDOWS;
|
|
if (sizeof(DLLVERSIONINFO2) == pdvi->info1.cbSize)
|
|
pdvi->ullVersion = MAKEDLLVERULL(ZINT_VERSION_MAJOR, ZINT_VERSION_MINOR, ZINT_VERSION_RELEASE, ZINT_VERSION_BUILD);
|
|
|
|
return S_OK;
|
|
}
|
|
#else
|
|
/* https://stackoverflow.com/a/26541331 Suppresses gcc warning ISO C forbids an empty translation unit */
|
|
typedef int make_iso_compilers_happy;
|
|
#endif /* _WIN32 */
|