RakAlloca.h 622 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #if defined(__FreeBSD__)
  11. #include <stdlib.h>
  12. #elif defined ( __APPLE__ ) || defined ( __APPLE_CC__ )
  13. #include <malloc/malloc.h>
  14. #include <alloca.h>
  15. #elif defined(_WIN32)
  16. #include <malloc.h>
  17. #else
  18. #include <malloc.h>
  19. // Alloca needed on Ubuntu apparently
  20. #include <alloca.h>
  21. #endif
粤ICP备19079148号