Changeset 140 in Main for trunk/Server


Ignore:
Timestamp:
Sep 23, 2024, 8:31:18 PM (8 weeks ago)
Author:
Nishi
Message:

adding cplusplus thing

Location:
trunk/Server
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r136 r140  
    503503                                        cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
    504504#else
    505                                         cmtime = timegm(&tm);
     505                                                cmtime = timegm(&tm);
    506506#endif
    507507                                }
  • trunk/Server/strptime.h

    r32 r140  
    11#ifndef STRPTIME_H
    22#define STRPTIME_H
     3
     4#ifdef __cplusplus
     5extern "C" {
     6#endif
    37
    48#include <time.h>
     
    812#endif
    913
     14#ifdef __cplusplus
     15}
     16#endif
     17
    1018#endif // STRPTIME_H
  • trunk/Server/tw_config.h

    r128 r140  
    33#ifndef __TW_CONFIG_H__
    44#define __TW_CONFIG_H__
     5
     6#ifdef __cplusplus
     7extern "C" {
     8#endif
    59
    610#include "tw_http.h"
     
    9296bool tw_permission_allowed(const char* path, SOCKADDR addr, struct tw_http_request req, struct tw_config_entry* vhost);
    9397
     98#ifdef __cplusplus
     99}
    94100#endif
     101
     102#endif
  • trunk/Server/tw_http.h

    r43 r140  
    33#ifndef __TW_HTTP_H__
    44#define __TW_HTTP_H__
     5
     6#ifdef __cplusplus
     7extern "C" {
     8#endif
    59
    610#include <stdbool.h>
     
    3539#endif
    3640
     41#ifdef __cplusplus
     42}
    3743#endif
     44
     45#endif
  • trunk/Server/tw_module.h

    r39 r140  
    33#ifndef __TW_MODULE_H__
    44#define __TW_MODULE_H__
     5
     6#ifdef __cplusplus
     7extern "C" {
     8#endif
    59
    610#include "tw_config.h"
     
    3438typedef int (*tw_mod_config_t)(struct tw_tool* tools, char** argv, int argc);
    3539
     40#ifdef SOURCE
    3641void* tw_module_load(const char* path);
    3742void* tw_module_symbol(void* mod, const char* sym);
    3843void tw_init_tools(struct tw_tool* tools);
    3944int tw_module_init(void* mod);
     45#endif
     46
     47#ifdef __cplusplus
     48}
     49#endif
    4050
    4151#endif
  • trunk/Server/tw_server.h

    r43 r140  
    33#ifndef __TW_SERVER_H__
    44#define __TW_SERVER_H__
     5
     6#ifdef __cplusplus
     7extern "C" {
     8#endif
    59
    610#include "../config.h"
     
    2327#endif
    2428
     29#ifdef __cplusplus
     30}
    2531#endif
     32
     33#endif
  • trunk/Server/tw_ssl.h

    r31 r140  
    33#ifndef __TW_SSL_H__
    44#define __TW_SSL_H__
     5
     6#ifdef __cplusplus
     7extern "C" {
     8#endif
    59
    610#include <openssl/ssl.h>
     
    913SSL_CTX* tw_create_ssl_ctx(__UINTPTR_TYPE__ port);
    1014
     15#ifdef __cplusplus
     16}
    1117#endif
     18
     19#endif
  • trunk/Server/tw_version.h

    r138 r140  
    33#ifndef __TW_VERSION_H__
    44#define __TW_VERSION_H__
     5
     6#ifdef __cplusplus
     7extern "C" {
     8#endif
    59
    610#define TW_VERSION "1.05A\0"
     
    913const char* tw_get_platform(void);
    1014
     15#ifdef __cplusplus
     16}
    1117#endif
     18
     19#endif
Note: See TracChangeset for help on using the changeset viewer.