Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
fa2f1c03
Commit
fa2f1c03
authored
May 13, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed "#include "windows.h"" from core headers
parent
5199cd9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
23 deletions
+7
-23
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+1
-21
window_w32.cpp
modules/highgui/src/window_w32.cpp
+2
-2
bagofwords_classification.cpp
samples/cpp/bagofwords_classification.cpp
+4
-0
No files found.
modules/core/include/opencv2/core/operations.hpp
View file @
fa2f1c03
...
...
@@ -73,27 +73,7 @@
#endif
#elif defined WIN32 || defined _WIN32
#if defined _MSC_VER && defined _M_IX86
static
inline
int
CV_XADD
(
int
*
addr
,
int
delta
)
{
int
tmp
;
__asm
{
mov
edx
,
addr
mov
eax
,
delta
lock
xadd
[
edx
],
eax
mov
tmp
,
eax
}
return
tmp
;
}
#else
#include "windows.h"
#undef min
#undef max
#define CV_XADD(addr,delta) InterlockedExchangeAdd((LONG volatile*)(addr), (delta))
#endif
#define CV_XADD(addr,delta) _InterlockedExchangeAdd((long volatile*)(addr), (delta))
#else
template
<
typename
_Tp
>
static
inline
_Tp
CV_XADD
(
_Tp
*
addr
,
_Tp
delta
)
...
...
modules/highgui/src/window_w32.cpp
View file @
fa2f1c03
...
...
@@ -179,6 +179,8 @@ static LRESULT CALLBACK MainWindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LP
static
void
icvUpdateWindowPos
(
CvWindow
*
window
);
static
CvWindow
*
hg_windows
=
0
;
typedef
int
(
CV_CDECL
*
CvWin32WindowCallback
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
int
*
);
static
CvWin32WindowCallback
hg_on_preprocess
=
0
,
hg_on_postprocess
=
0
;
static
HINSTANCE
hg_hinstance
=
0
;
...
...
@@ -1671,8 +1673,6 @@ CV_IMPL const char* cvGetWindowName( void* window_handle )
}
typedef
int
(
CV_CDECL
*
CvWin32WindowCallback
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
int
*
);
CV_IMPL
void
cvSetPreprocessFuncWin32_
(
const
void
*
callback
)
{
...
...
samples/cpp/bagofwords_classification.cpp
View file @
fa2f1c03
...
...
@@ -8,6 +8,10 @@
#include <memory>
#if defined WIN32 || defined _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef min
#undef max
#include "sys/types.h"
#endif
#include <sys/stat.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment