Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f44277

Browse files
committed
Fix Bug: include the windows.h when using memory database on Windows
1 parent9aa6755 commit3f44277

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎apache2/ag_mdb/ag_mdb.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ int Lock_create(struct agmdb_lock *new_lock, const char* lock_name, int lock_nam
4949
#else
5050
char read_lock_name[AGMDB_MAX_NAME_LEN];
5151
char write_lock_name[AGMDB_MAX_NAME_LEN];
52-
HANDLE new_mutex;
5352
bool lock_exists =false;
5453

5554
if (AGMDB_isstring(lock_name, lock_name_length) != AGMDB_SUCCESS)

‎apache2/ag_mdb/ag_mdb_external.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
extern"C" {
66
#endif
77

8+
#ifndef_WIN32
89
#include"stdbool.h"
10+
#else
11+
#include<windows.h>
12+
#endif
913

1014
/**
1115
**========================================================

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp