github.com/256dpi/max-go@v0.7.0/lib/max/ext_prefix_includes.h (about)

     1  //
     2  //  ext_prefix_includes.h
     3  //  max
     4  //
     5  //  Created by Jeremy Bernstein on 27.07.21.
     6  //
     7  
     8  #ifndef __EXT_PREFIX_INCLUDES_H__
     9  #define __EXT_PREFIX_INCLUDES_H__
    10  
    11  #ifdef __cplusplus
    12  extern "C" {
    13  #endif
    14  
    15  #ifdef MAC_VERSION
    16  
    17  // If the prefix header containing #include <Carbon/Carbon.h> is not present, then we include
    18  // a minimal set of required headers here.
    19  #ifndef __MACTYPES__
    20  #include <MacTypes.h>
    21  #endif
    22  
    23  #include <sys/types.h>
    24  
    25  #endif // MAC_VERSION
    26  
    27  #ifdef WIN_VERSION
    28  
    29  #ifndef _CRT_SECURE_NO_WARNINGS
    30  #define _CRT_SECURE_NO_WARNINGS
    31  #endif
    32  
    33  #ifndef _SCL_SECURE_NO_WARNINGS
    34  #define _SCL_SECURE_NO_WARNINGS
    35  #endif
    36  
    37  #ifndef WIN32_LEAN_AND_MEAN
    38  #define WIN32_LEAN_AND_MEAN
    39  #endif
    40  
    41  #include <malloc.h>
    42  #include <windows.h>
    43  #include <richedit.h>
    44  #include <commctrl.h>
    45  
    46  #endif // WIN_VERSION
    47  
    48  // c standard library
    49  #include <assert.h>
    50  #include <ctype.h>
    51  #include <float.h>
    52  #include <math.h>
    53  #include <setjmp.h>
    54  #include <stdarg.h>
    55  #include <stdio.h>
    56  #include <stdlib.h>
    57  #include <string.h>
    58  #include <stddef.h>
    59  
    60  #ifdef __cplusplus
    61  }
    62  #endif
    63  
    64  #endif /* __EXT_PREFIX_INCLUDES_H__ */