Unified · Split
| @@ -3,7 +3,7 @@ APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264 · 2 unmodified lines | ||
| 3 | 3 | APITESTPROGS-yes += api-seek |
| 4 | 4 | APITESTPROGS-yes += api-codec-param |
| 5 | 5 | APITESTPROGS-$(call DEMDEC, H263, H263) += api-band |
| 6 | −APITESTPROGS-$(HAVE_PTHREADS) += api-threadmessage | |
| 6 | +APITESTPROGS-$(HAVE_THREADS) += api-threadmessage | |
| 7 | 7 | APITESTPROGS += $(APITESTPROGS-yes) |
| 8 | 8 | |
| 9 | 9 | APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o) |
| @@ -22,12 +22,11 @@ · 21 unmodified lines | ||
| 22 | 22 | * Thread message API test |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | −#include <pthread.h> | |
| 26 | − | |
| 27 | 25 | #include "libavutil/avassert.h" |
| 28 | 26 | #include "libavutil/avstring.h" |
| 29 | 27 | #include "libavutil/frame.h" |
| 30 | 28 | #include "libavutil/threadmessage.h" |
| 29 | +#include "libavutil/thread.h" // not public | |
| 31 | 30 | |
| 32 | 31 | struct sender_data { |
| 33 | 32 | int id; |
| @@ -28,7 +28,7 @@ FATE_API_SAMPLES_LIBAVFORMAT-yes += fate-api-jpeg-codec-param · 27 unmodified lines | ||
| 28 | 28 | fate-api-jpeg-codec-param: $(APITESTSDIR)/api-codec-param-test$(EXESUF) |
| 29 | 29 | fate-api-jpeg-codec-param: CMD = run $(APITESTSDIR)/api-codec-param-test $(TARGET_SAMPLES)/exif/image_small.jpg |
| 30 | 30 | |
| 31 | −FATE_API-$(HAVE_PTHREADS) += fate-api-threadmessage | |
| 31 | +FATE_API-$(HAVE_THREADS) += fate-api-threadmessage | |
| 32 | 32 | fate-api-threadmessage: $(APITESTSDIR)/api-threadmessage-test$(EXESUF) |
| 33 | 33 | fate-api-threadmessage: CMD = run $(APITESTSDIR)/api-threadmessage-test 3 10 30 50 2 20 40 |
| 34 | 34 | fate-api-threadmessage: CMP = null |