693f1e87154947811c9ac21a092b5aefe1f38836
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

include/intern/missing.h  1) /*
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

include/intern/missing.h  2)  * EtherPix library
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

include/intern/missing.h  3)  *
Stefan Schuermans update copyright year

Stefan Schuermans authored 7 years ago

include/intern/missing.h  4)  * Copyright 2010-2017 Stefan Schuermans <stefan schuermans info>
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

include/intern/missing.h  5)  *
include/intern/missing.h  6)  * This program is free software: you can redistribute it and/or modify
include/intern/missing.h  7)  * it under the terms of the GNU General Public License as published by
include/intern/missing.h  8)  * the Free Software Foundation, version 3 of the License.
include/intern/missing.h  9)  *
include/intern/missing.h 10)  *
include/intern/missing.h 11)  * This program is distributed in the hope that it will be useful,
include/intern/missing.h 12)  * but WITHOUT ANY WARRANTY; without even the implied warranty of
include/intern/missing.h 13)  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
include/intern/missing.h 14)  * GNU General Public License for more details.
include/intern/missing.h 15)  *
include/intern/missing.h 16)  * You should have received a copy of the GNU Lesser General Public License
include/intern/missing.h 17)  * along with this program. If not, see <http://www.gnu.org/licenses/>.
include/intern/missing.h 18)  */
include/intern/missing.h 19) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

include/intern/missing.h 20) #ifndef ETP_MISSING_H
include/intern/missing.h 21) #define ETP_MISSING_H
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

include/intern/missing.h 22) 
include/intern/missing.h 23) #include <string.h>
include/intern/missing.h 24) 
include/intern/missing.h 25) #ifdef WINDOWS
Stefan Schuermans adaptions for gcc 5

Stefan Schuermans authored 7 years ago

include/intern/missing.h 26) static inline char * strerror_r(int errnum, char *buf, size_t buflen)
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

include/intern/missing.h 27) {
include/intern/missing.h 28)   strncpy(buf, strerror(errnum), buflen);
include/intern/missing.h 29)   if (buflen >= 1)
include/intern/missing.h 30)     buf[buflen - 1] = 0;
include/intern/missing.h 31)   return buf;
include/intern/missing.h 32) }
include/intern/missing.h 33) #endif
include/intern/missing.h 34) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

include/intern/missing.h 35) #endif /* #ifndef ETP_MISSING_H */