Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • A ALPI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ALPI
  • ALPI
  • Merge requests
  • !5

Include stddef.h for size_t

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Aleix Boné requested to merge abonerib/alpi:fix/undefined_size_t into master Apr 11, 2025
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1
#include "alpi.h"

int main(int argc, char *argv[]) { }
In file included from sample.c:1:
alpi.h:108:52: error: unknown type name ‘size_t’
  108 | int alpi_info_get(alpi_info_t query, char *buffer, size_t max_length, int *length);
      |                                                    ^~~~~~
alpi.h:13:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; this is probably fixable by adding ‘#include <stddef.h>’
   12 | #include <stdint.h>
  +++ |+#include <stddef.h>
   13 |
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/undefined_size_t