a3a92abf1ca043aaaaaa79381afa316abaa00ace
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

1) /*
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

2)  * EtherPix library
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

3)  *
Stefan Schuermans removed version information...

Stefan Schuermans authored 13 years ago

4)  * Copyright 2010-2011 Stefan Schuermans <stefan schuermans info>
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

20) #ifndef ETP_MISSING_H
21) #define ETP_MISSING_H
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

26) static inline char * strerror_r(int errnum, char *buf, size_t buflen)
Stefan Schuermans v1.0.6

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

35) #endif /* #ifndef ETP_MISSING_H */