1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef GRAPHIC_LITE_FILE_H 17 #define GRAPHIC_LITE_FILE_H 18 19 #ifdef _WIN32 20 #include <sys/types.h> 21 #include <sys/stat.h> 22 #include <fcntl.h> 23 #include <io.h> 24 #else 25 #include "stdint.h" 26 #include "fcntl.h" 27 #include "unistd.h" 28 #include "sys/mount.h" 29 #include "sys/stat.h" 30 #ifdef __APPLE__ 31 #include "sys/param.h" 32 #else 33 #include "sys/statfs.h" 34 #endif 35 #include "dirent.h" 36 #include "stdio.h" 37 #include "errno.h" 38 #endif 39 40 #define DEFAULT_FILE_PERMISSION 0666 // default file permission when creat file 41 #endif // GRAPHIC_LITE_FILE_H 42