Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d36cbc4a
Commit
d36cbc4a
authored
Dec 05, 2022
by
Brendan Shanks
Committed by
Alexandre Julliard
Jan 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/msvcrt: Add __WINE_(ALLOC_SIZE|DEALLOC|MALLOC) attributes to _aligned_malloc functions.
parent
3a688e81
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
corecrt.h
include/msvcrt/corecrt.h
+6
-0
corecrt_malloc.h
include/msvcrt/corecrt_malloc.h
+4
-4
No files found.
include/msvcrt/corecrt.h
View file @
d36cbc4a
...
@@ -342,6 +342,12 @@ typedef struct threadlocaleinfostruct {
...
@@ -342,6 +342,12 @@ typedef struct threadlocaleinfostruct {
#define __WINE_CRT_SCANF_ATTR(fmt,args)
#define __WINE_CRT_SCANF_ATTR(fmt,args)
#endif
#endif
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
#define __WINE_ALLOC_SIZE(...) __attribute__((__alloc_size__(__VA_ARGS__)))
#else
#define __WINE_ALLOC_SIZE(...)
#endif
#if defined(__GNUC__) && (__GNUC__ > 10)
#if defined(__GNUC__) && (__GNUC__ > 10)
#define __WINE_DEALLOC(...) __attribute__((malloc (__VA_ARGS__)))
#define __WINE_DEALLOC(...) __attribute__((malloc (__VA_ARGS__)))
#else
#else
...
...
include/msvcrt/corecrt_malloc.h
View file @
d36cbc4a
...
@@ -36,10 +36,10 @@ _ACRTIMP void* __cdecl _expand(void*,size_t);
...
@@ -36,10 +36,10 @@ _ACRTIMP void* __cdecl _expand(void*,size_t);
_ACRTIMP
size_t
__cdecl
_msize
(
void
*
);
_ACRTIMP
size_t
__cdecl
_msize
(
void
*
);
_ACRTIMP
void
__cdecl
_aligned_free
(
void
*
);
_ACRTIMP
void
__cdecl
_aligned_free
(
void
*
);
_ACRTIMP
void
*
__cdecl
_aligned_malloc
(
size_t
,
size_t
);
_ACRTIMP
void
*
__cdecl
_aligned_malloc
(
size_t
,
size_t
)
__WINE_ALLOC_SIZE
(
1
)
__WINE_DEALLOC
(
_aligned_free
)
__WINE_MALLOC
;
_ACRTIMP
void
*
__cdecl
_aligned_offset_malloc
(
size_t
,
size_t
,
size_t
);
_ACRTIMP
void
*
__cdecl
_aligned_offset_malloc
(
size_t
,
size_t
,
size_t
)
__WINE_ALLOC_SIZE
(
1
)
__WINE_DEALLOC
(
_aligned_free
)
__WINE_MALLOC
;
_ACRTIMP
void
*
__cdecl
_aligned_realloc
(
void
*
,
size_t
,
size_t
);
_ACRTIMP
void
*
__cdecl
_aligned_realloc
(
void
*
,
size_t
,
size_t
)
__WINE_ALLOC_SIZE
(
2
)
__WINE_DEALLOC
(
_aligned_free
)
;
_ACRTIMP
void
*
__cdecl
_aligned_offset_realloc
(
void
*
,
size_t
,
size_t
,
size_t
);
_ACRTIMP
void
*
__cdecl
_aligned_offset_realloc
(
void
*
,
size_t
,
size_t
,
size_t
)
__WINE_ALLOC_SIZE
(
2
)
__WINE_DEALLOC
(
_aligned_free
)
;
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
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