Init
This commit is contained in:
26
Source/include/slikenet/alloca.h
Normal file
26
Source/include/slikenet/alloca.h
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oculus VR, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
|
||||
#elif defined ( __APPLE__ ) || defined ( __APPLE_CC__ )
|
||||
#include <malloc/malloc.h>
|
||||
#include <alloca.h>
|
||||
#elif defined(_WIN32)
|
||||
#include <malloc.h>
|
||||
#else
|
||||
#include <malloc.h>
|
||||
// Alloca needed on Ubuntu apparently
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
Reference in New Issue
Block a user