Explorar o código

alloca() lives in stdlib.h on FreeBSD

Rob Messick %!s(int64=11) %!d(string=hai) anos
pai
achega
0109fb4295
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      platform/x11/platform_config.h

+ 6 - 0
platform/x11/platform_config.h

@@ -26,7 +26,13 @@
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
+#ifdef __linux__
 #include <alloca.h>
+#endif
+#ifdef __FreeBSD__
+#include <stdlib.h>
+#endif
+
 #define GLES2_INCLUDE_H "gl_context/glew.h"
 #define GLES1_INCLUDE_H "gl_context/glew.h"