Page 1 of 1

Should nbtime.h have #include <time.h>?

Posted: Fri Apr 22, 2016 5:10 pm
by joepasquariello
I'm just now moving up from 2.6.7 to 2.7.5, and found new files nbtime.cpp and nbtime.h, which is nice. nbtime.h references type time_t, but has no #include <time.h> to define it, so files that #include <nbtime.h> must also #include <time.h>. Should nbtime.h #include <time.h>, or was it left out for a reason?

Joe

Re: Should nbtime.h have #include <time.h>?

Posted: Wed Apr 27, 2016 10:15 am
by dciliske
I believe you are correct...

Re: Should nbtime.h have #include <time.h>?

Posted: Wed Apr 27, 2016 1:32 pm
by joepasquariello
Thanks for the reply, Dan. Obviously a minor thing. Is there anything I should do to get it on a low-priority to-do list?

Joe

Re: Should nbtime.h have #include <time.h>?

Posted: Wed Apr 27, 2016 4:07 pm
by dciliske
Exactly what you did. It'll be in the next release...