Edit

kc3-lang/libxkbcommon/src/utils-paths.h

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2025-02-12 16:12:42
    Hash : 16e3e3cb
    Message : utils: Fix missing headers

  • src/utils-paths.h
  • /*
     * Copyright © 2024 Pierre Le Marre
     * SPDX-License-Identifier: MIT
     */
    #pragma once
    
    #include <stdbool.h>
    
    #include "utils.h"
    
    #ifdef _WIN32
    #define PATH_SEPARATOR '\\'
    #define ALT_PATH_SEPARATOR '/'
    #define is_path_separator(s) \
        ((s) == PATH_SEPARATOR || (s) == ALT_PATH_SEPARATOR)
    #else
    #define PATH_SEPARATOR '/'
    #define is_path_separator(s) ((s) == PATH_SEPARATOR)
    #endif
    
    XKB_EXPORT_PRIVATE bool
    is_absolute(const char *path);