2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef DALI_ADAPTOR_EXTERN_DEFINITIONS_H
19 #define DALI_ADAPTOR_EXTERN_DEFINITIONS_H
23 int setenv( const char* __name, const char* __value, int __replace );
24 const char* app_get_data_path();
26 static int strncasecmp(const char *s1, const char *s2, register int n)
28 while (--n >= 0 && toupper((unsigned char)*s1) == toupper((unsigned char)*s2++))
29 if (*s1++ == 0) return 0;
30 return(n < 0 ? 0 : toupper((unsigned char)*s1) - toupper((unsigned char)*--s2));
33 int __cdecl setsockopt( int s, int level, int optname, unsigned int * optval, unsigned int optlen );
35 int __cdecl setsockopt( int s, int level, int optname, int * optval, unsigned int optlen );
38 #define fmemopen CustomFile::FMemopen
42 FILE* FMemopen( void* __s, size_t __len, const char* __modes );
45 #endif // DALI_ADAPTOR_EXTERN_DEFINITIONS_H