CanvasRenderer: Separates Commit() method
[platform/core/uifw/dali-adaptor.git] / third-party / windows-platform / extern-definitions.h
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 #ifndef DALI_ADAPTOR_EXTERN_DEFINITIONS_H
19 #define DALI_ADAPTOR_EXTERN_DEFINITIONS_H
20
21 #include <xlocale>
22
23 const char* app_get_data_path();
24
25 static int strncasecmp(const char *s1, const char *s2, register int n)
26 {
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));
30 }
31
32 int __cdecl setsockopt( int s, int level, int optname, unsigned int * optval, unsigned int optlen );
33
34 int __cdecl setsockopt( int s, int level, int optname, int * optval, unsigned int optlen );
35
36
37 #define fmemopen CustomFile::FMemopen
38
39 namespace CustomFile
40 {
41   FILE* FMemopen( void* __s, size_t __len, const char* __modes );
42 }
43
44 #endif // DALI_ADAPTOR_EXTERN_DEFINITIONS_H