From f9810c0dfb769caa7e67660e59727aaf6b00fdbc Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 6 Jun 2008 13:28:25 +0000 Subject: Fix the linking of TOOLS/netstream and TOOLS/vivodump. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26995 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index bfe6f695c8..a5adb72918 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2537,6 +2537,9 @@ static int seek(MPContext *mpctx, double amount, int style) return 0; } +/* This preprocessor directive is a hack to generate a mplayer-nomain.o object + * file for some tools to link against. */ +#ifndef DISABLE_MAIN int main(int argc,char* argv[]){ @@ -4038,3 +4041,4 @@ exit_player_with_rc(MSGTR_Exit_eof, 0); return 1; } +#endif /* DISABLE_MAIN */ -- cgit v1.2.3