Commit 0099e9f6 authored by Pavithra K's avatar Pavithra K Committed by Wolfgang Seiss

[FIX] Fix application compilation issue in 32 bit Windows

 - The CancelIoEx API is supported only in Windows Vista and
   later versions. Hence, resolve 'unresolved external symbol' error
   by setting minimum required OS version to Windows Vista.

Change-Id: I32469e51bd1e16ad613708826007a7072538282a
parent e710f842
......@@ -13,7 +13,7 @@ openPOWERLINK demo applications.
/*------------------------------------------------------------------------------
Copyright (c) 2016, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R)
Copyright (c) 2013, SYSTEC electronic GmbH
Copyright (c) 2015, Kalycito Infotech Private Limited
Copyright (c) 2017, Kalycito Infotech Private Limited
All rights reserved.
Redistribution and use in source and binary forms, with or without
......@@ -42,7 +42,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//------------------------------------------------------------------------------
// includes
//------------------------------------------------------------------------------
#define _WIN32_WINNT 0x0501 // Windows version must be at least Windows XP
#define _WIN32_WINNT 0x0600 // Windows version must be at least Windows Vista
#define WIN32_LEAN_AND_MEAN // Do not use extended Win32 API functions
#include <Windows.h>
......
......@@ -8,7 +8,7 @@ This file contains target specific definitions for Windows.
*******************************************************************************/
/*------------------------------------------------------------------------------
Copyright (c) 2015, Kalycito Infotech Private Limited
Copyright (c) 2017, Kalycito Infotech Private Limited
Copyright (c) 2016, Bernecker+Rainer Industrie-Elektronik Ges.m.b.H. (B&R)
Copyright (c) 2013, SYSTEC electronic GmbH
All rights reserved.
......@@ -45,12 +45,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
#include <string.h>
// Windows version must be at least Windows XP
#if (defined(_WIN32_WINNT) && (_WIN32_WINNT < 0x0501))
// Windows version must be at least Windows Vista
#if (defined(_WIN32_WINNT) && (_WIN32_WINNT < 0x0600))
#undef _WIN32_WINNT
#endif
#if !defined(_WIN32_WINNT)
#define _WIN32_WINNT 0x0501
#define _WIN32_WINNT 0x0600
#endif
// Do not use extended Win32 API functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment