shithub: openh264

Download patch

ref: 977768ac880deaa63c43998a84d0b0f68651f67e
parent: 640c43a3e135836fa2225258d9963bc646789ca9
parent: b9f04e0db861664d66c5e0e0486965cefa96d892
author: Ethan Hugg <ethanhugg@gmail.com>
date: Mon Jan 27 09:50:13 EST 2014

Merge pull request #222 from mstorsjo/enable-threading

Enable threading when building for most platforms

--- a/build/platform-darwin.mk
+++ b/build/platform-darwin.mk
@@ -1,6 +1,6 @@
 
 ASM = nasm
-CFLAGS += -Wno-deprecated-declarations -Werror -fPIC -DMACOS
+CFLAGS += -Wno-deprecated-declarations -Werror -fPIC -DMACOS -DMT_ENABLED
 LDFLAGS += -lpthread
 ASMFLAGS += --prefix _ -DNOPREFIX
 ifeq ($(ENABLE64BIT), Yes)
--- a/build/platform-linux.mk
+++ b/build/platform-linux.mk
@@ -1,5 +1,5 @@
 ASM = nasm
-CFLAGS += -Werror -fPIC -DLINUX
+CFLAGS += -Werror -fPIC -DLINUX -DMT_ENABLED
 LDFLAGS += -lpthread
 ASMFLAGS += -DNOPREFIX
 ifeq ($(ENABLE64BIT), Yes)
--- a/build/platform-mingw_nt.mk
+++ b/build/platform-mingw_nt.mk
@@ -1,5 +1,5 @@
 ASM = nasm
-CFLAGS +=
+CFLAGS += -DMT_ENABLED
 LDFLAGS +=
 ifeq ($(ENABLE64BIT), Yes)
 ASMFLAGS += -f win64
--- a/build/platform-msvc.mk
+++ b/build/platform-msvc.mk
@@ -1,5 +1,6 @@
 include build/platform-msvc-common.mk
 ASM = nasm
+CFLAGS += -DMT_ENABLED
 LDFLAGS += user32.lib
 ifeq ($(ENABLE64BIT), Yes)
 ASMFLAGS += -f win64