2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
[official-gcc.git] / gcc / config / winnt-c.c
blobd52db62afd28302ddf697ff444d1694ced8e5867
1 /* Default C-family target hooks initializer.
2 Copyright (C) 2013
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #include "config.h"
22 #include "system.h"
23 #include "coretypes.h"
24 #include "c-family/c-target.h"
25 #include "c-family/c-target-def.h"
27 static bool
28 winnt_implicit_extern_c (const char *ident)
30 return !strcmp(ident, "wmain")
31 || !strcmp(ident, "DllMain")
32 || !strcmp(ident, "WinMain")
33 || !strcmp(ident, "wWinMain");
36 #undef TARGET_CXX_IMPLICIT_EXTERN_C
37 #define TARGET_CXX_IMPLICIT_EXTERN_C winnt_implicit_extern_c
39 struct gcc_targetcm targetcm = TARGETCM_INITIALIZER;