Skip to content

Commit

Permalink
[libc][fix] Use off_t libc type directly
Browse files Browse the repository at this point in the history
Summary:
Including stdio here caused some multiple definitions on overlay mode.
Just include `off_t` directly.

Is this correct for 32-bit targets? Will investigate further after
fixing bots.
  • Loading branch information
jhuber6 committed Jul 9, 2024
1 parent d65f423 commit 0182f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/src/__support/File/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
#ifndef LLVM_LIBC_SRC___SUPPORT_FILE_FILE_H
#define LLVM_LIBC_SRC___SUPPORT_FILE_FILE_H

#include "include/llvm-libc-types/off_t.h"
#include "src/__support/CPP/new.h"
#include "src/__support/error_or.h"
#include "src/__support/macros/properties/architectures.h"
#include "src/__support/threads/mutex.h"

#include <stddef.h>
#include <stdint.h>
#include <stdio.h>

namespace LIBC_NAMESPACE {

Expand Down

0 comments on commit 0182f51

Please sign in to comment.