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 const char* app_get_data_path();
25 static int strncasecmp(const char *s1, const char *s2, register int n)
27 while (--n >= 0 && toupper((unsigned char)*s1) == toupper((unsigned char)*s2++))
28 if (*s1++ == 0) return 0;
29 return(n < 0 ? 0 : toupper((unsigned char)*s1) - toupper((unsigned char)*--s2));
32 int __cdecl setsockopt( int s, int level, int optname, unsigned int * optval, unsigned int optlen );
34 int __cdecl setsockopt( int s, int level, int optname, int * optval, unsigned int optlen );
37 #define fmemopen CustomFile::FMemopen
41 FILE* FMemopen( void* __s, size_t __len, const char* __modes );
44 #endif // DALI_ADAPTOR_EXTERN_DEFINITIONS_H