File: _ios.h

package info (click to toggle)
gvidm 0.8-15
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 420 kB
  • sloc: cpp: 1,049; sh: 153; python: 104; makefile: 64
file content (28 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __GVIDM__IOS_H__
#define __GVIDM__IOS_H__

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef HAVE_IOS
#include <ios>
#else
#include <iostream>
#endif

#if !HAVE_DECL_STD__FIXED
inline std::ios& fixed(std::ios &s) {
	s.setf(std::ios::fixed, std::ios::floatfield);
	return s;
}
#endif

#if !HAVE_DECL_STD__LEFT
inline std::ios& left(std::ios &s) {
	s.setf(std::ios::left, std::ios::adjustfield);
	return s;
}
#endif

#endif