• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright (c) 2017 The Khronos Group Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //    http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 #ifndef MINGW_COMPAT_H
17 #define MINGW_COMPAT_H
18 
19 #if defined(__MINGW32__)
20 char *basename(char *path);
21 #include <malloc.h>
22 
23 #if defined(__MINGW64__)
24 // mingw-w64 doesnot have __mingw_aligned_malloc, instead it has _aligned_malloc
25 #define __mingw_aligned_malloc _aligned_malloc
26 #define __mingw_aligned_free _aligned_free
27 #include <stddef.h>
28 #endif //(__MINGW64__)
29 
30 #endif //(__MINGW32__)
31 #endif // MINGW_COMPAT_H
32