X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Ftest%2Fcompiler.cpp;h=13aede9fedc0b806a24541e9bbe7ff3d7e65cd30;hb=0a329440bd1d0fa642ce2f3e14bc88125377b5bd;hp=1c3e1d8752ebeb1aeab44d1a5ef5e9f21875eae4;hpb=35d80008d6cb55160d06dda51aebc716c4d6511b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/test/compiler.cpp b/make/test/compiler.cpp index 1c3e1d875..13aede9fe 100644 --- a/make/test/compiler.cpp +++ b/make/test/compiler.cpp @@ -1,6 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2016 Attila Molnar + * Copyright (C) 2014-2015, 2017, 2021 Sadie Powell * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -17,12 +19,20 @@ #include -#if defined _LIBCPP_VERSION +#if defined _LIBCPP_VERSION || __cplusplus >= 201103L +# include +# include # include #else +# include +# include # include #endif +#if defined __llvm__ && !defined __clang__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ == 1 +# error "LLVM-GCC 4.2.1 has broken visibility support." +#endif + int main() { std::cout << "Hello, World!" << std::endl; return 0;