blob: dd1ec4e981f1f8755274aba43d44dbbfccc2a104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* This file is part of Media Player Classic HomeCinema.
*
* MPC-HC is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* MPC-HC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef _MSC_VER
#if (_MSC_VER == 1600)
char FfmpegCompiler[] = "MSVC 2010";
#elif (_MSC_VER == 1500)
#if (_MSC_FULL_VER >= 150030729)
char FfmpegCompiler[] = "MSVC 2008 SP1";
#else
char FfmpegCompiler[] = "MSVC 2008";
#endif
#elif (_MSC_VER < 1500)
#error Compiler is not supported!
#endif
char* GetFfmpegCompiler()
{
return FfmpegCompiler;
}
#else // _MSC_VER
#include <stdio.h>
static char g_Gcc_Compiler[20];
char* GetFfmpegCompiler()
{
sprintf (g_Gcc_Compiler, "GCC %d.%d.%d", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
return g_Gcc_Compiler;
}
#endif //_MSC_VER
|