Rename "sun" variable to avoid conflicts on Solaris
[deliverable/binutils-gdb.git] / gold / incremental.cc
index 21f060c945bc4603b60333d61f59547e9a1370ad..f9471f87b9d264d0065b0045d1d006bdbdd7972e 100644 (file)
@@ -1,6 +1,6 @@
 // inremental.cc -- incremental linking support for gold
 
-// Copyright (C) 2009-2018 Free Software Foundation, Inc.
+// Copyright (C) 2009-2019 Free Software Foundation, Inc.
 // Written by Mikolaj Zalewski <mikolajz@google.com>.
 
 // This file is part of gold.
@@ -311,7 +311,11 @@ Sized_incremental_binary<size, big_endian>::setup_readers()
   for (unsigned int i = 0; i < count; i++)
     {
       Input_entry_reader input_file = inputs.input_file(i);
+#if __cplusplus >= 2001103L
+      this->input_entry_readers_.emplace_back(input_file);
+#else
       this->input_entry_readers_.push_back(Sized_input_reader(input_file));
+#endif
       switch (input_file.type())
        {
        case INCREMENTAL_INPUT_OBJECT:
This page took 0.023997 seconds and 4 git commands to generate.