This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, v3] Potential solution to librt issue.


> Would it work *not* including <time.h> in chrono.cc, instead
> declaring it "by hand" decorated with the "famous" weakref
> attribute.

Better, I'm thinking about having at the beginning of chrono.cc something like:

   static int __clock_gettime(clockid_t clk, struct timespec *) __attribute__ ((weakref ("clock_gettime")));

then using only __clock_gettime in chrono.cc, and exporting, I don't know, __now_helper.

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]